A simple app for adding React to an existing website
Learn about Babel Plugin Ordering on https://babeljs.io/docs/en/plugins#plugin-ordering
You’ll need to have Node 8 or later version on your local development machine.
- Clone the repository using
git clone https://github.com/abrahamgnanasingh/AddReactToAWebsite.git - Go to the root folder and do
npm install - Do
npm start - Open index.html in browser
In the project directory, you can run:
Runs npx babel --watch src --out-dir build (npx comes with npm 5.2+ and higher) and continuously watching for file changes in src folder and generates *.js files (which browser understands) in build folder
Generates *.js files (which browser understands) in build folder for production
Learn about React on https://reactjs.org
Learn about Hooks on https://reactjs.org/docs/hooks-intro.html