Hacker News new | ask | show | jobs
by danabramov 1191 days ago
ReactDOM.render has been deprecated since React 18. If you're running React 18 with ReactDOM.render, you should already see an error urging you to switch because essentially ReactDOM.render works in React 17 mode.

Yeah you want

const root = createRoot(domNode) root.render(<Stuff />)

(or the JSX transform output equivalent)

1 comments

We're not on 18 yet but things are clear, thanks!