react, redux-saga and typescript
redux, react-router, typesafe-actions with additional settings
$> git clone https://github.com/ondaa/react-saga-blueprint.git
// move to project folder
$> cd react-saga-blueprint
// install module
// use npm
$> npm install
// use yarn
$> yarn install
// use npm
$> npm run start
// use yarn
$> yarn start
- components (blank)
- containers
- HomeContainer.tsx (count dispatch example)
- pages
- About.tsx (sub router switch example)
- Home.tsx
- store
- mobules
- base (example base action, state, saga action)
- index.ts (example state & action)
- actions.ts (example action)
- saga.ts (example saga action)
- saga
- baseSaga.ts ( base saga effect put, call, takeEvery)
- index.ts (combine all saga)
- base (example base action, state, saga action)
- configure.ts (createReducer)
- index.ts (createStore)
- mobules
- App.tsx (main router switch example)
- index.tsx (all context component apply)
- Use
npx create-react-app [project-name] --template typescript
- You can run scripts for
eject
- You can change all the code
- Only very simple settings and example
- 2020.03.01 install and use react-helmet