Redux Preboiled
  • Redux Preboiled
  • Guides
    • Getting Started
    • Actions
    • Reducers
    • Testing
  • API
    • API Overview
    • chainReducers
    • createAction
    • getInitialState
    • onAction
    • reduceActions
    • withInitialState
  • Misc
    • Changelog
    • License
Powered by GitBook
On this page
  • Installation
  • Usage
  • Next Steps
  1. Guides

Getting Started

PreviousRedux PreboiledNextActions

Last updated 3 years ago

Installation

Redux Preboiled is published to the as redux-preboiled. You can install it as usual via NPM or .

# NPM
npm install redux-preboiled

# Yarn
yarn add redux-preboiled

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:

import { chainReducers, onAction } from 'redux-preboiled';

If you use a module bundler thats supports - such as or - only the helpers you actually use will end up in your application's build output. For instance, in a React app boostrapped with , this works out of the box.

Next Steps

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

NPM registry
Yarn
tree shaking
Webpack
Rollup
Create React App
actions
reducers
testing