Official Redux templates for Vite, Create-React-App, and more
MIT License
This major release updates the CRA+TS template to work with React 18 and React-Redux v8, including updating the rendering to use createRoot
and updating all dependencies.
Full Changelog: https://github.com/reduxjs/cra-template-redux-typescript/compare/v1.0.2...v2.0.0
Published by markerikson over 3 years ago
This release reworks the counter slice example to show better usage patterns,
includes pre-typed React-Redux hooks, bumps TypeScript, and fixes line endings
for the template files.
We've updated the counter example to better showcase use of sync and async
thunks, including fetching from a fake API layer.
We've also added some additional comments to clarify what each bit of code is.
We now recommend creating pre-typed versions of the React-Redux hooks. This release adds an app/hooks.ts
file that exports those hooks already and shows using them in the <Counter>
component file.
We've updated TypeScript to 4.1+.
Previous versions of the template had Windows line endings. They should now work better on all systems.
https://github.com/reduxjs/cra-template-redux-typescript/compare/v1.0.1...v1.0.2
Published by markerikson over 4 years ago
This release wraps the app in <React.StrictMode>
by default (matching the standard CRA templates), improves the AppThunk
generic type, and tweaks some naming and comments.
https://github.com/reduxjs/cra-template-redux-typescript/compare/v1.0.0...v1.0.1
Published by markerikson over 4 years ago
This is the first release of the official Redux+TypeScript template for Create-React-App!
You can use this to set up a brand new Create-React-App project that will be automatically set up with:
RootState
and thunks<Provider>
passing the store to your React componentsTo use it, run:
npx create-react-app my-app --template redux-typescript
See the Create-React-App docs on project setup for more information.
Thanks to: