react-garage
v0.0.2
Published
A localStorage wrapper for react components with added functionality
Downloads
6
Readme
React Garage
A simple localStorage wrapper for react components.
Important
This is an experimental module --wip, YMMV
What is react garage?
Just like in your home, your garage is a place to store stuff that you'd like to have quick access to, but not in your way.
Features
- basic client-side persistence with localStorage sessions
- use component's setState to store state to localStorage
- lodash style property accessors
get(state, 'prop.otherprop')
- communicate cross components by hooking into react-garage's event emitter
Module Todo
- Add tests
- Add docs
- Add example usage
Contributors, questions, and comments
Email me