🔥 A new HOC API: pure()
Andrew (@acdlite) added pure(), a new HOC to bring PureComponent behavior to functional components.
https://github.com/facebook/react/pull/13748
Andrew (@acdlite) added pure(), a new HOC to bring PureComponent behavior to functional components.
https://github.com/facebook/react/pull/13748
GitHub
pure by acdlite · Pull Request #13748 · facebook/react
Note: the discussion for this proposal is in reactjs/rfcs#63. It has since been renamed to React.iss.onemo().
A higher-order component version of the React.PureComponent class. During an update, the pre...
A higher-order component version of the React.PureComponent class. During an update, the pre...
📚 Easier Access to Context from Class Components
Brian (@brian_d_vaughn) added an API that adds this.context in all callbacks of class components and simplifies migration to the new context.
https://github.com/facebook/react/pull/13728
Brian (@brian_d_vaughn) added an API that adds this.context in all callbacks of class components and simplifies migration to the new context.
https://github.com/facebook/react/pull/13728
GitHub
Support class component static contextType attribute by bvaughn · Pull Request #13728 · facebook/react
Note: the discussion for this proposal is in reactjs/rfcs#65.
The main motivation is that continuing to support legacy context makes React slower and larger, and we'd like to be able to help ev...
The main motivation is that continuing to support legacy context makes React slower and larger, and we'd like to be able to help ev...
👀 Async React Is Now Concurrent React
After previous tweets by the React Core team, Dominic (@trueadm) now landed a commit that renames AsyncMode to ConcurrentMode.
https://github.com/facebook/react/pull/13732
After previous tweets by the React Core team, Dominic (@trueadm) now landed a commit that renames AsyncMode to ConcurrentMode.
https://github.com/facebook/react/pull/13732
GitHub
Rename AsyncMode -> ConcurrentMode by trueadm · Pull Request #13732 · facebook/react
This PR renames AsyncMode to ConcurrentMode. Specifically:
React exports unstable_ConcurrentMode now rather than unstable_AsyncMode.
ReactTestRender now takes unstable_isConcurrent as an option ra...
React exports unstable_ConcurrentMode now rather than unstable_AsyncMode.
ReactTestRender now takes unstable_isConcurrent as an option ra...