redux reducer type safety code example
Example: add redux to react typescript
npm install redux react-redux
npm install -D @types/redux @types/react-redux
npm install redux react-redux
npm install -D @types/redux @types/react-redux