There is something new in React, particularly with Create-React-App. Now, we can set up a brand new React app with Typescript and Redux by running one command:
npx create-react-app my-app --template redux-typescript
It will generate all the React-Redux, and TypeScript dependencies and setups needed.
Better, a ready-to-use Redux store is also created and configured for us.
Sorry for the interrupt!
If you're interested in learning React in a comprehensive way, I highly recommend this bestseller course: React - The Complete Guide (incl Hooks, React Router, Redux)
It's an affiliate link, so by purchasing, you support the blog at the same time.- Folder structure
├── node_modules
├── public
├── app
| └── store.ts
├── App.css
├── App.test.tsx
├── App.tsx
├── features
| └── counter
| ├── Counter.module.css
| ├── Counter.tsx
| └── counterSlice.ts
├── index.css
├── index.tsx
├── logo.svg
├── output.txt
├── react-app-env.d.ts
├── serviceWorker.ts
└── setupTests.ts
Learn more about it.
#react#redux#typescript
How to build a Fullscreen Slider with React HooksHow to Start Testing Your React Apps Using the React Testing Library and Jest