When I started learning React, configuring my React project was my biggest problem. Everyone has a different pattern on setting up their React environment. Therefore it was hard to begin writing React code.
Then I find out that in 2016/7 came out with this react cli create-react-app. The reason is because many React programmer has similar configuration problem, which lead to the term ‘javascript fatigue’ back in 2016. Facebook realize this problem and came up with a solution.
create-react-app came is preconfigured. It has webpack configured so I can just focus on writing react code. For further customization I can use the eject command and customize from there.
It also has a build tool so I can change my react site to static site and host it with surge.
1 | npm install -g create-react-app |
Reference: