-
Notifications
You must be signed in to change notification settings - Fork 103
Closed
Description
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.
Metadata
Metadata
Assignees
Labels
No labels