Skip to content

Using componentDidMount instead of componentWillMount #19

Closed
@kristofdombi

Description

@kristofdombi

The next major version of React is going to deprecate componentWillMount. Because of this, the next minor version (v16.3) is renaming componentWillMount to UNSAFE_componentWillMount.

I saw in the README, at the using FUIWR with local state section, that componentWillMount lifecycle method is used for listening to Firebase and setting local state.

I suggest that the README should support the use of componentDidMount method to be up to date for next version releases of React.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions