VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Bug] @visactor/react-vtable在react18以下无法使用

Open kapeter opened this issue 1 year ago • 2 comments

Version

1.5.6

Link to Minimal Reproduction

在react17的项目中使用@visactor/react-vtable

Steps to Reproduce

在react17的项目中使用@visactor/react-vtable

Current Behavior

在vtable-react-attribute-plugin.ts中使用了ReactDom.createRoot,这个API只有react18才有。和官网文档中描述的环境要求(react 16.0+)不一致,https://visactor.io/vtable/guide/Developer_Ecology/react。

Expected Behavior

支持react18以下

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

kapeter avatar Aug 16 '24 07:08 kapeter

目前VTable在不使用自定义组件功能时,是可以在react17版本运行的;自定义组件功能是基于[email protected]版本开发,react-reconciler相关代码强依赖了react18。这部分说明我们在文档中补全

Rui-Sun avatar Aug 26 '24 11:08 Rui-Sun

我自己改了一下降到0.26.2了,项目是react17

kapeter avatar Aug 28 '24 15:08 kapeter

请问这个react 17支持了吗 我现在还是报错 想使用antd的button组件 渲染不了

Hjyperfect avatar Aug 25 '25 12:08 Hjyperfect