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

server.js React.renderToString is deprecated. #5

Open
simson2010 opened this issue Jan 21, 2016 · 1 comment
Open

server.js React.renderToString is deprecated. #5

simson2010 opened this issue Jan 21, 2016 · 1 comment

Comments

@simson2010
Copy link

I got warning:

server.js

markup = React.renderToString(Timer());

warning

Warning: React.renderToString is deprecated. 
Please use ReactDOMServer.renderToString from require('react-dom/server') instead.
@jerrylau91
Copy link

This is true.

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

No branches or pull requests

2 participants