react-redux-provide-selectable
v0.1.2
Published
Provides a handful of common actions and props specific to selecting keys within some object.
Downloads
6
Maintainers
Readme
Feel free to submit any pull requests or create issues for anything you think might be useful!
react-redux-provide-selectable
Provides a handful of common actions and props specific to selecting keys within some object.
Installation
npm install react-redux-provide react-redux-provide-selectable --save
Usage
Your components can be optionally provided a map
(object), the selectedKey
, and/or the selected
value. Simply specify their propTypes
within your @provide
decorator. For a list of available actions, just take a look at the source.
Example
For assigning the provider to components and initializing state, see
todomvc/index.js
.For displaying the map and selecting a key, see
todomvc/components/Footer.js
.