4 ms·
> then when React has loaded, replace it with a React component What you described is basically `hydrate` which is how to enable React event handlers like onCl
by styfle 9y ago
> then when React has loaded, replace it with a React component
What you described is basically `hydrate` which is how to enable React event handlers like onClick after a server-side render.
https://github.com/styfle/react-server-example-tsx/blob/4586f3431b4bfd424179da3aad2c6adbddb0de10/src/browser.tsx#L11 https://github.com/styfle/react-server-example-tsx/blob/4586...