This is meant to get you started learning React! It uses Webpack and Babel to complile your React code, along with your CSS. You can also use webpack-dev-server to preview your React application locally, and the application will rebuild quickly on every file save. By default, the server runs on http://localhost:3000.
- Clone or fork this repository on GitHub.
- Install the NPM packages:
npm install - Preview your React app:
npm run start-dev
If you're curious to see what Webpack is actually sending to the browser, try building the app with npm start. Then, look at public/main.js. What you find may shock and horrify you. 😱
If you'd like to deploy this application to GitHub Pages, run npm start to generate docs/main.js and then push those changes to the main branch. Then, go to Settings > Pages and configure GitHub Page to deploy from the main branch at the /docs directory.