Skip to content

Commit

Permalink
Wrapper component will be rendered to static markup always
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMost committed Apr 3, 2015
1 parent 09abe13 commit 49906cd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,9 @@ module.exports = function engineFactory (engineOptions) {
body: componentMarkup,
props: options
});

if (engineOptions.staticMarkup) {
markup += React.renderToStaticMarkup(wrapperInstance);
} else {
markup += React.renderToString(wrapperInstance);
}

markup += React.renderToStaticMarkup(wrapperInstance);

} else {
markup += componentMarkup;
}
Expand Down

0 comments on commit 49906cd

Please sign in to comment.