redux-zero / redux-zero

A lightweight state container based on Redux

Home Page:https://matheusml1.gitbooks.io/redux-zero-docs/content/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Separate modules

bmwoodall opened this issue · comments

Great work! Was working on something similar myself, and this library fit the need just right!

I was wondering if it was possible to separate out the different modules? As I need to only install the react specific code.

Trying to keep my bundle sizes to a minimum.

Hi @bl-brandon, thanks for the question.

We already do that.

When you do this:

import createStore from "redux-zero"
import { Provider, connect } from "redux-zero/react"

you're already importing only the bundle you'll need for react.