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