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

有办法兼容react18吗? #2514

Open
jinxiangqiang opened this issue Feb 20, 2024 · 0 comments
Open

有办法兼容react18吗? #2514

jinxiangqiang opened this issue Feb 20, 2024 · 0 comments

Comments

@jinxiangqiang
Copy link

项目有升级react18需求,但升级react18后会失去特性

import dva from 'dva'
import ReactDOM from 'react-dom/client'
import router from './router'

const container: any = document.getElementById('root')
const root = ReactDOM.createRoot(container)

const app = dva()

app.router(router)

root.render(app.start()())

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

1 participant