Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/modernpoacher/isomorphic
https://github.com/modernpoacher/isomorphic
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/modernpoacher/isomorphic
- Owner: modernpoacher
- Created: 2020-10-21T20:37:07.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T03:06:43.000Z (7 months ago)
- Last Synced: 2024-04-14T00:22:07.219Z (7 months ago)
- Language: JavaScript
- Size: 3.42 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @modernpoacher/isomorphic
Implements:
1. [@sequencemedia/react-render](https://github.com/sequencemedia/react-render)
2. [@sequencemedia/react-router-render](https://github.com/sequencemedia/react-router-render)
3. [@sequencemedia/react-redux-render](https://github.com/sequencemedia/react-redux-render)
4. [@sequencemedia/react-router-redux-render](https://github.com/sequencemedia/react-router-redux-render)## 1. _React_
```javascript
import {
renderToString,
renderToStaticMarkup,
render
} from '@modernpoacher/isomorphic'
```## 2. _React Router_
```javascript
import {
renderToString,
renderToStaticMarkup,
render
} from '@modernpoacher/isomorphic/react-router'
```## 3. _React_ and _Redux_
```javascript
import {
renderToString,
renderToStaticMarkup,
render
} from '@modernpoacher/isomorphic/redux'
```## 4. _React Router_ and _Redux_
```javascript
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`)