r/JavaScriptTips • • Feb 12 '22

Please Can you help me with this Vue3!!!

5 Upvotes

5 comments sorted by

1

u/prashant13b Feb 12 '22

try setup : () => {}

1

u/Fairy026 Feb 17 '22

Thank you.Why?

1

u/prashant13b Feb 17 '22 edited Feb 17 '22

Because your export default is an object and you have to define function like a property

2

u/Fairy026 Feb 17 '22

Because your export default is and object and you have define function like a property

Thank you Can we add whatsapp contact to communicate?