A minimal opinionated react template with react-redux, redux-saga, react-router, typescript, eslint, and prettier.
- Airbnb eslint config with small changes
- Functional components
- Component names and files are PascalCase.
- Function names are camelCase, files are kebab-case
start: react-scripts startbuild: react-scripts buildtest: react-scripts testeject: react-scripts ejectg: plop (angular cli like code generator)
.
├── plop-templates
├── public
└── src
├── components
├── helpers
├── hooks
├── pages
│ └── Counter
│ ├── Counter.module.css
│ ├── Counter.tsx
│ └── index.ts
├── router
├── store
│ ├── counter
│ │ ├── counter.actions.ts
│ │ ├── counter.reducer.ts
│ │ ├── counter.sagas.ts
│ │ ├── counter.types.ts
│ │ └── index.ts
│ ├── index.ts
│ ├── reducer.ts
│ ├── saga.ts
│ ├── state.ts
│ └── store.ts
└── types