Skip to content
/ react-template Public template

A lightly-opinionated starter template for React using modern idioms. Based on CRA using react-app-rewired.

Notifications You must be signed in to change notification settings

rossdm/react-template

Repository files navigation

About

This is a lightly-opinionated starter template for React using current idioms.

It includes a number of optional libraries that might be used in a typical project:

Getting started

Clone this project, then:

rm -rf .git

Rename the project and author in package.json, then good to go!

Based on Create React App using react-app-rewired.

Linting

See eslintrc.json for lint rules. Linting is done on git commit via husky and lint-staged.

You can run linting manually via:

npm run lint

or

npm run lint:fix

Other things you'll need

When your project gets bigger you'll probably want to add react-router.

For more advanced state management, use Redux for general state and Context for globals.

You'll find it easier to compose prototypes using a component library such as Ant Design or Material UI. I'd prefer something like Ant since Material UI uses some unfamiliar UX patterns for dropdowns. If you use Ant make sure your build stays optimized. If you choose something else, research your strategy for overriding the framework styles using your CSS solution (styled-components, Emotion, etc.).

About

A lightly-opinionated starter template for React using modern idioms. Based on CRA using react-app-rewired.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published