-
Notifications
You must be signed in to change notification settings - Fork 105
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
Node compatibility #1
Comments
Makes sense. Would you mind sending a PR? |
Sure. I'll try it in my prerendering+client setup and send you a PR if I get it working. |
Please check it doesn't break nested titles. (It shouldn't but |
Is there a particular reason you're using |
Can you give me a breaking example? One of this component's goals is to emit zero DOM and since react doesn't support returning multiple nodes in
|
Docs: http://facebook.github.io/react/docs/top-level-api.html#react.children (Only is last) |
You might have an error if you're using DT as a leaf node. It's suppose to have a child. |
I found the problem: I was using my git working directory as a |
This problem is literally chasing me. gaearon/react-hot-loader#32 (comment) I guess I'll file it as an issue in React.. |
According to React's component reference, componentWillMount will also be run on the server. This means bad things will happen (namely, it will attempt to access
document
on the server, which likely throws an exception).I don't see any reason not to use componentDidMount instead.EDIT: See PR #2 for why we can't use
componentDidMount
for this component.The text was updated successfully, but these errors were encountered: