DEV Community

Discussion on: 5 tips to improve your React and JS code

Collapse
 
marklai1998 profile image
Mark Lai

For the first Tip
manually order the imports is tedious
I'm using import-sort with husky pre-commit hook
That makes my life much easier, I never need to care about the ordering of it
Just use auto import and commit + push my code, really simple
github.com/renke/import-sort

Collapse
 
adancarrasco profile image
Adán Carrasco

This is so cool Mark. What a nice way to do it; automating it!
Thanks for sharing!

Collapse
 
s0xzwasd profile image
Daniil Maslov

Thanks for sharing!