Before one can create-react-app, one must create a React app.
tldr; First day with React, decided to create my own dev environment. Took me 7hrs. 100% worth it.
This took me over seven hours. ;___;
Right now, the project utilizes:
- React & ReactDOM v. 15
- TypeScript@next (nightly builds)
- Webpack@2.2.0 (release candidate 3)
- Yarn Package Manager
Once again, I only started on this today, so it’s is a bit messy. The dependencies listed in package.json need to be updated & reorganized, the npm scripts need modifying, and the Webpack configuration needs to implement code splitting, bundle optimization, and a slew of other things. As it stands it’s not a setup I would use to create a production build for deployment, but that wasn’t today’s goal. Today’s goal was to get started with React, and my approach when learning is to work from the bottom up. After seven hours of fiddling, I can not only run React code in the browser, I can do it from scratch.
Github repository: https://github.com/nitishdayal/react_from_scratch