I am working as a web developer for nearly 20 years. I care a lot about simple and maintainable code that is fun to work with, good documentation and clean APIs.
You should not install create-react-app globally. That was the advice a couple of years ago. The problem is: you need to keep it updated manually and it wastes space on your computer.
Nowadays its the better idea to run it directly through npx:
npx create-react-app my-app-name
And the second note:
Especially as a beginner, you should not apply a class based approach in your react development.
Again, this was best practice a couple of years ago but not anymore.
A beginner should focus on functional components nowadays - class components might even get removed at some point.
Two notes:
You should not install
create-react-app
globally. That was the advice a couple of years ago. The problem is: you need to keep it updated manually and it wastes space on your computer.Nowadays its the better idea to run it directly through npx:
npx create-react-app my-app-name
And the second note:
Especially as a beginner, you should not apply a class based approach in your react development.
Again, this was best practice a couple of years ago but not anymore.
A beginner should focus on functional components nowadays - class components might even get removed at some point.
Thank you so much for your tips.