Releases: reduxjs/redux-templates
v2.0.0
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.
What's Changed
- Update template deps for React-Redux v8 by @markerikson in #66
Full Changelog: v1.0.2...v2.0.0
v1.0.2
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.
Changelog
Counter Example Improvements
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.
Pre-Typed React-Redux Hooks
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.
Template Fixes
We've updated TypeScript to 4.1+.
Previous versions of the template had Windows line endings. They should now work better on all systems.
Changes
- Merge pull request #38 from reduxjs/feature/general-enhancements e5ea07c
- Merge pull request #32 from AlaeddineMessadi/add-counter-slice-tests 6c8ba9c
- Merge pull request #33 from mtricht/update-typescript 90afb9d
- Merge pull request #36 from msutkowski/add-typed-hooks 9539a25
- Fix scripts (#12) 78b5489
v1.0.1
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.
Changelog
- Clarify counter slice name (@markerikson - df0a095)
- Add strict mode (@BenLorantfy - d97531a)
- Make AppThunk generic with return type (@bugzpodder - abdbfa9)
Initial Release: 1.0.0
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:
- Redux Toolkit, React-Redux, and TypeScript dependencies included
- A Redux store configured and created, with exported types for the
RootState
and thunks - The React-Redux
<Provider>
passing the store to your React components - A small "counter" example showing how to add Redux logic using Redux Toolkit and a "ducks" / feature-based structure, and using the React-Redux hooks API to interact with the store from inside your components.
To use it, run:
npx create-react-app my-app --template redux-typescript
See the Create-React-App docs on project setup for more information.
Credits
Thanks to:
- @BenLorantfy for doing most of the hard work on porting the original Redux+JS template and adding some additional tweaks
- @lukyth for merging in the original CRA+TS template
- @nickmccurdy for additional tweaks
Changelog
- Add CRA TS template (@lukyth- #2 )
- Copy code from cra-template-redux and convert to TS (@BenLorantfy - #3)
- Add Redux links from cra-template-redux (@nickmccurdy - #4)
- Add post-launch tweaks (@BenLorantfy - #6)