ultimate-react
v1.1.0
Published
Ultimate React Template (Parcel)
Downloads
1
Readme
ultimate-react-template
Ultimate React Template (Parcel)
Table of Contents:
- Requirements
- Setup
- Running
- Bundler
- Linting / code style
- Routes
- React Features
- Styling
- Testing
- Additional Packages
- Roadmap
Requirements
- Node.js
- Eslint extension (recommended)
- Prettier extension (recommended)
- Docker (recommended)
- Yarn (optional)
Building and running on localhost
First install dependencies:
yarn install
This project uses yarn package manager but you can use npm instead
To run in hot module reloading mode:
yarn start
To create a production build:
yarn run build
Running
Open localhost:1234/
in your browser
Bundler / Transpiler
Parcel: Blazing fast, zero configuration web application bundler
Babel (es2020)
Linting / code style
Routes
React Features
React Lazy: Load different parts of the application only when they're needed (code-splitting)
Suspense: Display useful loading states
Context Api: Provides a way to pass data through the component tree without having to pass props down manually at every level
Hooks: Let you use state and other React features without writing a class component. In other words, Hooks are functions that let you “hook into” React state and lifecycle features from function components.
Styling
Styled components (with Global Style)
Testing
enzyme (react-adapter-16)
To run unit tests:
yarn test
Additional Packages
Roadmap
[]- Add docker database (postgres)
[]- Add documentation
[]- Add more additional packages
[]- Add example tests