Skip to content

whitcomb/hypernova-react-redux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hypernova-react-redux

React/Redux (react-redux) bindings for Hypernova.

NPM version Build Status PeerDependency Status DevDependency Status

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:

import { renderReactRedux } from 'hypernova-react-redux';
import MyConnectedComponent from './src/MyConnectedComponent.jsx';
import myConfigureStore from './src/MyStore/ConfigureStore.jsx';

export default renderReactRedux(
  'MyConnectedComponent.hypernova.js', // this file's name (or really any unique name)
  MyConnectedComponent,
  myConfigureStore
);

Todo

  • To handle the multiple of the connected components

Contribution

  1. Fork it ( http://github.com/noriaki/hypernova-react-redux/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Licence

MIT

Author

noriaki

About

React/Redux (react-redux) bindings for Hypernova.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%