tiny-ducks is a small redux-style state management module for React.
For usage examples see the example.
This module uses
tsdx for development and packaging.
Get started in the root folder. This builds to
/dist and runs the project in watch mode so any edits you save inside
src causes a rebuild to
npm i npm start
Then run the example inside another terminal:
cd example npm i npm start
To do a one-off build, use
npm run build.
To run tests, use
Code quality is set up for you with
lint-staged. Adjust the respective fields in
Jest tests are set up to run with
npm test. This runs the test watcher (Jest) in an interactive mode. By default, runs tests related to files changed since the last commit.
tsconfig.json is set up to interpret
esnext types, as well as
jsx. Adjust according to your needs.