mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
a68ca9a5b5
We're not planning to encourage legacy context, and without this change, it's difficult to use pure+forwardRef together. We could special-case `pure(forwardRef(...))` but this is hopefully simpler.
```js
React.pure(function(props, ref) {
// ...
});
```