VisActor / VisActor/VTable

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

Open
#2,242 3 comments 0 reactions 1 assignee View on GitHub

@Rui-Sun is already working on this.

Since Aug 18, 2024.

bug
Dominant language
TypeScript
Stars
3.7k
Forks
486
Avg merge
1d 19h
Merged PRs (30d)
16

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.