Getting Started

Installation

Redux Preboiled is published to the NPM registry as redux-preboiled. You can install it as usual via NPM or Yarn.
1
# NPM
2
npm install redux-preboiled
3
4
# Yarn
5
yarn add redux-preboiled
Copied!
TypeScript typings are provided out of the box - no additional typings package needed.

Usage

Preboiled is just a collection of helper functions, so there is no required setup. Just import the helpers you need directly from the redux-preboiled module, for example:
1
import { chainReducers, onAction } from 'redux-preboiled';
Copied!
If you use a module bundler thats supports tree shaking - such as Webpack or Rollup - only the helpers you actually use will end up in your application's build output. For instance, in a React app boostrapped with Create React App, this works out of the box.

Next Steps

For a tour of Redux Preboiled, see the guides on the provided helpers for actions, reducers and testing.