hypernova-react icon indicating copy to clipboard operation
hypernova-react copied to clipboard

ReactDOM.hydrate is no longer supported in React 18

Open elitedeveloper opened this issue 2 years ago • 2 comments

Hi Everyone!

On the execution of this line

import { renderReact } from 'hypernova-react';
.
.
.
renderReact('App', ReduxApp);

I am seeing the following error in the console. Is this on hypernova's end or on my end? image

elitedeveloper avatar Jan 27 '23 15:01 elitedeveloper

Seems like a reasonable PR to use hydrateRoot when present, and fall back to hydrate? Luckily it still works, it just logs the warning.

ljharb avatar Jan 27 '23 17:01 ljharb

@elitedeveloper I've created a fork to resolve this You can try https://github.com/samiashi/hypernova-react

samiashi avatar Mar 31 '23 14:03 samiashi