ReactDom.render() vs createRoot

Setting up a very basic React component and I notice in the console I'm getting an error saying the

"ReactDom.render() is no longer supported in React 18. Use createRoot() instead"

though 18 is the React version I'm on, and it does appear to work...

Do I need to be using createRoot?
Screen_Shot_2023-06-02_at_9.32.48_AM.png
Screen_Shot_2023-06-02_at_9.32.36_AM.png
Screen_Shot_2023-06-02_at_9.32.42_AM.png
Was this page helpful?