Open youluna opened 3 years ago
Q:如果不用 findDOMNode 怎么获取 Node 元素呢? A:把 ref 放到 HTMLElement 上面,直接确保获取到的 是 Node 即可
这条issue有什么进展么
React18 里面不再支持 findDomNode,要逐渐去除
React18有支持的计划吗?
发现 findDOMNode 很难去掉,比如弹窗中我要获取用户的 trigger 元素,如果用户的 Functional Component 不支持 Ref,我无法获取实例!
发现 findDOMNode 很难去掉,比如弹窗中我要获取用户的 trigger 元素,如果用户的 Functional Component 不支持 Ref,我无法获取实例!
目前17已经支持,18还存在一个 findDOMNode 的问题,不是组件诉求,而是业务大部分人写的组件都不会考虑 ref,而组件为了一些体验必须取到实例还得依赖 findDOMNode。
这个现在有进度吗?
能不能先把 peerDependencies 的问题解决一下,现在 tnpm 严格检查禁止安装:
快3年了,有没有roadmap,以及peerDependencies 的问题能不能先解决下,不维护了就早点说吧,用户也可以早日迁走
你好,新的维护团队刚刚接手不久,近期将会立项做一次项目架构整体调整,兼容高版本 react 也会在规划范围内,请不要着急,有进展我们会在issue内同步,感谢你的关注。
React 17 已经出来有一段时间了,需要适配React 17,记下TODO
findDOMNode
的使用