Skip to content

Node compatibility #1

@pluma

Description

@pluma

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions