Skip to content

Releases: reduxjs/redux-templates

v2.0.0

24 Apr 20:11
Compare
Choose a tag to compare

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

Full Changelog: v1.0.2...v2.0.0

v1.0.2

05 Apr 02:49
Compare
Choose a tag to compare

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...v1.0.2

v1.0.1

04 Apr 19:17
Compare
Choose a tag to compare

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

v1.0.0...v1.0.1

Initial Release: 1.0.0

10 Mar 22:51
Compare
Choose a tag to compare

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)