|
|
|
|
|
by WhitneyLand
3007 days ago
|
|
Developer learning curve: The context name is a good choice I think. Context API sounds much more elegant than global variables API. While that’s a little tongue in cheek, the lifecycle method names I would rate as a drastic drop in intuitiveness: Previous: componentWillMount
componentWillReceiveProps
componentWillUpdate
New: getDerivedStateFromProps
getSnapshotBeforeUpdate
|
|
You still have `componentDidMount`, `componentDidUpdate`, and `componentWillUnmount` that should be used more commonly and do exactly what you expect them to.