Unfortunately there are no up-to date examples of Typescript with Redux, thus, we have this library.
The projects this was derived from:
- https://hackernoon.com/redux-saga-tutorial-for-beginners-and-dog-lovers-aa69a17db645
- https://github.com/zposten/Catalyst/
- https://github.com/piotrwitek/react-redux-typescript-guide
The compilation of this project uses a few steps:
- Transpile
.tsand.tsxfiles into.jsand.jsxfiles respectively into thetsc_distfolder. - Copy the files the tranpiler missed into the
tsc_distfolder. - Point your
public/index.htmlto the newly generatedtsc_dist/index.js - Use Parcel to bundle your
public/index.htmlwhich uses thetsc_distfolder into a new directory calleddist.
First install node modules:
npm i
Then start both the typescript compiler and parcel bundler in watch mode:
npm run start