@modernpoacher/isomorphic
v1.2.276
Published
Isomorphic React + Redux + React Router
Downloads
1,944
Readme
@modernpoacher/isomorphic
Implements:
- @sequencemedia/react-render
- @sequencemedia/react-router-render
- @sequencemedia/react-redux-render
- @sequencemedia/react-router-redux-render
1. React
import {
renderToString,
renderToStaticMarkup,
render
} from '@modernpoacher/isomorphic'
2. React Router
import {
renderToString,
renderToStaticMarkup,
render
} from '@modernpoacher/isomorphic/react-router'
3. React and Redux
import {
renderToString,
renderToStaticMarkup,
render
} from '@modernpoacher/isomorphic/redux'
4. React Router and Redux
import {
renderToString,
renderToStaticMarkup,
render
} from '@modernpoacher/isomorphic/react-router/redux'
Implementation
Each function returns a string (or resolves to a string in the case of render
which returns a Promise
)