Getting Started with React, TypeScript and Redux.
This blog post will walk us through setting up a React, TypeScript and Redux application in few minutes. I'd assume you are familiar with the React ecosystem and probably have worked with TypeScript before but if you haven't, I'll briefly talk about ...
abdqaadir.hashnode.dev16 min read
FWIW, this process can be simplified greatly, on several levels.
First, we already have a Redux+TS template for Create-React-App: github.com/reduxjs/cra-template-redux-typescript . It comes with Redux Toolkit and React-Redux already configured.
Second, the examples here are actually going against how we recommend writing Redux code.
createSliceAPI, which will also auto-generate the action creators for youcreateSliceuses Immer inside, so you can "mutate" the state inside of the reducer instead of having to write spread operations for immutable updatesPlease see these resources for our guidelines on how to write Redux code correctly: