UNPKG

fluorine-lib

Version:

Reactive state and side effect management for React using a single stream of actions

11 lines (7 loc) 279 B
import connectStore from './connectStore' export default function withStore(store, prop = 'data', pureProps = true) { if (typeof store === 'function') { return connectStore((_, props) => store(props), prop, pureProps) } return connectStore(store, prop, pureProps) }