3 simple steps
- Clone or download the react_webpack_template repo
- run "npm install"
- run "npm start"
This project help you eliminate the stress involved in creating a new react app using webpack it already has the dependencies needed for setting up a new react app all you just have to do is to install the dependencies It contains the
----package.json file
----webpack.config.js file
After download run "npm install " in the folder
The dependencies will now be installed
---The /src folder contains /app folder and index.html file---The src/app folder contains the index.js file which is the javascript file that should contain your code.
After the dependencies have finished installing run "npm start " in the folder
---This src/app/index.js and the src/index.html files are complied to dist/app/bundle.js and dist/index.html
NB : bundled.js file has already been linked in theindex.html
The application can be previewed in your browser by navigating to http://localhost:8080