User mentions: move React.forwardRef into the higher-order component #24518
Labels
[Feature] Reader
The reader site on Calypso.
[Type] Enhancement
Changes to an existing feature — removing, adding, or changing parts of it
Milestone
Improvement to user mentions functionality added in #24287.
The higher-order component
withUserMentions
currently requires the wrapped component to do aReact.forwardRef
so we can access the DOM node. According to the docs, we can move this ref forwarding into the HOC itself:https://reactjs.org/docs/forwarding-refs.html
The text was updated successfully, but these errors were encountered: