StarWars-Basic WebApp Template Guide
StarWars-Basic WebApp with React JS provides a foundational setup. Ensure the following steps are followed for optimal development:
1. Node version: Install dependencies using version 10 or above with the command:
$ npm install
2. Environment setup: Create a .env file using:
$ cp .env.example .env
3. Webpack server: Start the server with live-reload functionality using:
$ npm run start
This works on Windows, Mac, Linux, and Gitpod.
4. Styling: Modify styles/index.scss or add new .scss files in the styles/ folder, then import them as needed.
5. Components: Add more files to ./src/js/components or the styles folder. Import them into existing files as necessary.
Important update: Components have been updated to functional components using hooks like useState() instead of class-based components. Constructor and state from classes are now replaced with hooks.
Start coding and customize based on your requirements!
评论区