Skip to content

Commit

Permalink
fix: npm problem with partially published previous version
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed May 23, 2018
1 parent 40ec191 commit 636ea05
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
SSR middleware for `react-relay-network-modern` (for Relay Modern)
==========================================
# SSR middleware for `react-relay-network-modern` (for Relay Modern)

[![](https://img.shields.io/npm/v/react-relay-network-modern-ssr.svg)](https://www.npmjs.com/package/react-relay-network-modern-ssr)
[![npm](https://img.shields.io/npm/dt/react-relay-network-modern-ssr.svg)](http://www.npmtrends.com/react-relay-network-modern-ssr)
[![Travis](https://img.shields.io/travis/nodkz/react-relay-network-modern-ssr.svg?maxAge=2592000)](https://travis-ci.org/nodkz/react-relay-network-modern-ssr)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
![FlowType compatible](https://img.shields.io/badge/flowtype-compatible-brightgreen.svg)


**For a full examples, see**:
- https://github.com/damassi/react-relay-network-modern-ssr-example
- https://github.com/damassi/react-relay-network-modern-ssr-todomvc

Server
=======
* https://github.com/damassi/react-relay-network-modern-ssr-example
* https://github.com/damassi/react-relay-network-modern-ssr-todomvc

# Server

```js
import { RelayNetworkLayer } from 'react-relay-network-modern';
import RelayServerSSR from 'react-relay-network-modern-ssr/lib/server';
Expand Down Expand Up @@ -62,11 +62,10 @@ setTimeout(() => {
const appHtml = ReactDOMServer.renderToString(<App />);
sendHtml(appHtml, relayData);
}, 0)

```

Client
======
# Client

```js
import { RelayNetworkLayer } from 'react-relay-network-modern';
import RelayClientSSR from 'react-relay-network-modern-ssr/lib/client';
Expand All @@ -91,15 +90,14 @@ ReactDOM.render(
/>,
mountPoint
)

```
Contribute
==========

# Contribute

I actively welcome pull requests with code and doc fixes.

[CHANGELOG](https://github.com/nodkz/react-relay-network-modern-ssr/blob/master/CHANGELOG.md)

# License

License
=======
[MIT](https://github.com/nodkz/react-relay-network-modern-ssr/blob/master/LICENSE.md)

0 comments on commit 636ea05

Please sign in to comment.