Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
fix eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Wing Leung authored and ljharb committed Jul 26, 2018
1 parent a0eb6b2 commit 681dbf3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ import ReactDOMServer from 'react-dom/server';
import hypernova, { serialize } from 'hypernova';

const renderReactServer = (name, component) => (props) => {
const contents = ReactDOMServer.renderToString(React.createElement(component, props));
const contents = ReactDOMServer.renderToString(
React.createElement(component, props),
);
return serialize(name, contents, props);
};

const renderReactStaticServer = (name, component) => props =>
// eslint-disable-next-line implicit-arrow-linebreak
ReactDOMServer.renderToStaticMarkup(React.createElement(component, props));

const renderReact = (name, component) => hypernova({
Expand Down

0 comments on commit 681dbf3

Please sign in to comment.