Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initUniversal: renderToString API changed in React 0.14 #22

Open
aeneasr opened this issue Nov 17, 2015 · 2 comments
Open

initUniversal: renderToString API changed in React 0.14 #22

aeneasr opened this issue Nov 17, 2015 · 2 comments

Comments

@aeneasr
Copy link

aeneasr commented Nov 17, 2015

Due to a hard dependency to React 0.13, this library does not work with React 0.14 because the rendering API of react has changed.

@Agamennon
Copy link
Owner

thanks for reporting will push a new version soon

@aeneasr aeneasr changed the title initUniversal: createElement API changed in React 0.14 initUniversal: render API changed in React 0.14 Nov 19, 2015
@aeneasr
Copy link
Author

aeneasr commented Nov 19, 2015

Simply replace

html = React.renderToString // ...

with

import { renderToString } from 'react-dom/server';

// ...

renderToString(<Layout store={store}/>);

here and here

@aeneasr aeneasr changed the title initUniversal: render API changed in React 0.14 initUniversal: renderToString API changed in React 0.14 Nov 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants