Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-dom没有导出 render这个方法 我使用antd的点击事件几乎都会报错 #607

Open
Ohh-889 opened this issue Dec 20, 2024 · 3 comments

Comments

@Ohh-889
Copy link

Ohh-889 commented Dec 20, 2024

源代码位置
https://github.com/react-component/util/blob/master/src/React/render.ts
第17行

const { version, render: reactRender, unmountComponentAtNode } = fullClone;

这是编译过后的报错代码
import * as ReactDOM from 'react-dom';

var fullClone = _objectSpread({}, ReactDOM);

var version = fullClone.version,
reactRender = fullClone.render,

function legacyRender(node, container) {
reactRender(node, container);
}

@Ohh-889
Copy link
Author

Ohh-889 commented Dec 20, 2024

升级到react-dom19会出现这个问题 看来是破坏性的更形

@getong
Copy link

getong commented Dec 21, 2024

#550 duplicated

@zoro-r
Copy link

zoro-r commented Dec 31, 2024

这个问题能修复吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants