alibaba-fusion / next

🦍 A configurable component library for web built on React.
https://fusion.design
MIT License
4.58k stars 584 forks source link

[All]兼容React17 #2803

Open youluna opened 3 years ago

youluna commented 3 years ago

React 17 已经出来有一段时间了,需要适配React 17,记下TODO

bindoon commented 3 years ago

Q:如果不用 findDOMNode 怎么获取 Node 元素呢? A:把 ref 放到 HTMLElement 上面,直接确保获取到的 是 Node 即可

leeword commented 3 years ago

这条issue有什么进展么

bindoon commented 2 years ago

React18 里面不再支持 findDomNode,要逐渐去除

baicoding commented 2 years ago

React18有支持的计划吗?

bindoon commented 2 years ago

发现 findDOMNode 很难去掉,比如弹窗中我要获取用户的 trigger 元素,如果用户的 Functional Component 不支持 Ref,我无法获取实例!

bindoon commented 2 years ago

发现 findDOMNode 很难去掉,比如弹窗中我要获取用户的 trigger 元素,如果用户的 Functional Component 不支持 Ref,我无法获取实例!

目前17已经支持,18还存在一个 findDOMNode 的问题,不是组件诉求,而是业务大部分人写的组件都不会考虑 ref,而组件为了一些体验必须取到实例还得依赖 findDOMNode。

lvren commented 1 year ago

这个现在有进度吗?

guoyunhe commented 1 year ago

能不能先把 peerDependencies 的问题解决一下,现在 tnpm 严格检查禁止安装:

image

stormrise commented 10 months ago

快3年了,有没有roadmap,以及peerDependencies 的问题能不能先解决下,不维护了就早点说吧,用户也可以早日迁走

YSMJ1994 commented 10 months ago

你好,新的维护团队刚刚接手不久,近期将会立项做一次项目架构整体调整,兼容高版本 react 也会在规划范围内,请不要着急,有进展我们会在issue内同步,感谢你的关注。