DEV Community

Discussion on: Day 1 : React start for Beginner

Collapse
 
paratron profile image
Christian Engel • Edited

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.

Collapse
 
bipon68 profile image
Bipon Biswas

Thank you so much for your tips.