Closed n2o closed 1 year ago
Should just be a case of updating inject to use the new create-root
and render
functions from reagent.dom.client in Reagent 1.2.0 right?
I still get warning:
Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot
Comming from day8.re-frame-10x.inlined-deps.reagent.v1v2v0.reagent.dom LN 17
I'm using {:mvn/version "1.9.3"}:
:preloads [devtools.preload day8.re-frame-10x.preload.react-18]
What happened?
10x uses the old react API, which is not working in ReactJS 18. The following error message appears:
To do this, we need to use the new functions for this. I built a project supporting the new react version and dropped 10x for this project: https://github.com/schnaq/cljs-re-frame-full-stack/blob/main/src/main/app/interface/core.cljs#L63-L67
10x Version
1.3.0
Reagent Version
1.1.1
React Version
18.1.0
re-frame Version
1.2.0
What browsers are you seeing the problem on?
Chrome
Relevant console output