hypernova-react-redux
React/Redux (react-redux) bindings for Hypernova.
On the server, wraps the redux connected component in a function to render it to a HTML string given its props.
On the client, calling this function with your component scans the DOM for any server-side rendered instances of it. It then resumes those components using the server-specified props.
Install
npm install hypernova-react-redux
Usage
Here's how use use it in your module:
Single connected component
;;; 'MyConnectedComponent.hypernova.js' // this file's name (or really any unique name) MyConnectedComponent myConfigureStore;
Multiple connected components
;;;;; 'MyConnectedComponent.hypernova.js' // this file's name (or really any unique name) <div> <MyConnectedComponentA /> <MyConnectedComponentB /> </div> myConfigureStore;
Todo
- To handle the multiple of the connected components
Contribution
- Fork it ( http://github.com/noriaki/hypernova-react-redux/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request