This is a simple boilerplate to quickly start a React project using Parcel as bundler.
- React 18
- Parcel 2
- TypeScript
- SCSS integration
- React Router for navigation
- Theme context for dark/light mode
- ESLint with Prettier integration
Make sure you have the following software installed:
- Node.js (v14 or later)
- Yarn package manager
-
Clone the repository:
git clone https://github.com/fidacura/react-starter.git cd react-starter
-
Install the dependencies:
yarn install
To start the development server with hot module replacement:
yarn dev
This will open your default browser with the running application.
To create a production build:
yarn build
The built assets will be in the dist folder.
To check for linting errors:
yarn lint
To format the code using Prettier:
yarn format