Im using rerender and renderHook in react testing library. Recently upgraded react version to 18. Got below error in one of the test case.
console.error 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
rerender(); renderHook(() => abc());
Since, im not using render why the warning is pointing rerender and renderHook as render.
Could you please point how to dig this issue further.