DEV Community

Cover image for 6 essentials tips for VueJs from 2.5 years experience #1

6 essentials tips for VueJs from 2.5 years experience #1

Code Oz on June 17, 2021

Hey how are you ! Welcome here my name is Code Oz and I will share with you some tips on VueJs (I have 2.5 years experience with this framework) ...
Collapse
 
the_one profile image
Roland Doda

Nice article. I wrote a similar one last year -> 8 secrets vue devs must know.

The truth is that I have other "secrets" to share. I hope I can find the time so I can publish a new article soon.

Collapse
 
codeoz profile image
Code Oz

Thanks ! I will check this soon :D

Collapse
 
yarip28 profile image
Yarip28

Begin vue js 5 days ! perfect timing !

Collapse
 
rayleigh93 profile image
Rayleigh-Sama

Nice tips !

Collapse
 
pawelmiczka profile image
Paweł Miczka

From my point of view as a Vue developer with 4 years of experience I have two advices:

  1. Switch to Composition API
  2. Use TypeScript (it works great with Composition API)
Collapse
 
planet_cbx profile image
Charlène Bonnardeaux

Thanks for this tips! I just don’t really understand the validator usage, but i going to make some search! ;)

Collapse
 
codeoz profile image
Code Oz

Thanks Charlene ! Validator is usefull since you can check if you props is 'validate' for exemple if a child component accept only the following string => 'one' or 'two' as props value, the validator will inform you that your props have an issue if you pass another value (for exemple: 'four').

You can also use validator for type checking (if you pass a number, vue will inform you that you have an issue in your code)

For more information : vuejs.org/v2/guide/components-prop...

Collapse
 
planet_cbx profile image
Charlène Bonnardeaux

Thanks for this useful l’explication ;) I going to use it in my next project followings your advices ;)

Collapse
 
christophervistal25 profile image
Christopher Vistal

Nice and Clear

Collapse
 
codeoz profile image
Code Oz

Thanks Christopher !

Collapse
 
nguyenquangtin profile image
Tony Tin Nguyen

Thank you @codeozz .

Collapse
 
codeoz profile image
Code Oz

thanks tony !

Collapse
 
sheelss profile image
Sheelss

Thanks

Collapse
 
codeoz profile image
Code Oz

Thanks sheelss

Collapse
 
vlaem profile image
Alvaro

Wow this is amazing, I didnt know about the first two and I've bee working with Vue for a couple of years now.

Collapse
 
codeoz profile image
Code Oz

Happy to see your comment ;D