You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
findDOMNode is slated for deprecation soon, and support in React 16 appears to be partially dropped already.
We currently rely on a custom findDOMNode function that will safely attempt to detect the rendered node using react fiber internals when necessary. This universally supports React 16 and earlier versions.
This isn't the best long-term solution since it relies on undocumented internals.
I'm not completely sold on this approach as it would complicate the consumer-facing interface. The provided content handler would need to manually pass a contentRef prop to its outermost element. Although this isn't too different from how the style prop is used.
Looking for ideas.
The text was updated successfully, but these errors were encountered:
findDOMNode
is slated for deprecation soon, and support in React 16 appears to be partially dropped already.We currently rely on a custom
findDOMNode
function that will safely attempt to detect the rendered node using react fiber internals when necessary. This universally supports React 16 and earlier versions.This isn't the best long-term solution since it relies on undocumented internals.
Dan recomments passing a
ref
handler prop down throug the component tree: jsx-eslint/eslint-plugin-react#678.I'm not completely sold on this approach as it would complicate the consumer-facing interface. The provided
content
handler would need to manually pass acontentRef
prop to its outermost element. Although this isn't too different from how thestyle
prop is used.Looking for ideas.
The text was updated successfully, but these errors were encountered: