Skip to content

Write blog post about new async UNSAFE_ and static lifecyclesΒ #12047

Closed
@bvaughn

Description

@bvaughn

Follow up item for PR #12028

This blog post should correspond with the 16.3 release. Its primary purpose is to let people know how to prepare for subsequent 16.4 release.

For application developers, this post should explain how to run the codemod to rename the deprecated methods (reactjs/react-codemod/pull/195) as well as general strategies for how to use the new lifecycle(s) instead.

For library maintainers, this should provide recommended update and release strategies including:

  • What kinds of code can be moved into render (to remain backwards compatible) vs what needs to either remain in UNSAFE_componentWillReceiveProps or moved to the new static getDerivedStateFromProps method.
  • When peer dependency version changes are required.
  • What versions of React will support the new UNSAFE_ methods.

Metadata

Metadata

Assignees

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