MWGitHub / ssr-skeleton

SSR Skeleton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React SSR Skeleton

Usage

npm i

npm run dev

May need to cancel and run dev again.

Navigate to localhost:3000

See that hydrate does not log anything.

Click the "Click" button, it should log something.

Change the following line in `./src/containers/Inner.jsx' from

ReactDOM.hydrate(<Inner />, document.getElementById('app'));

to

ReactDOM.render(<Inner />, document.getElementById('app'));

The console log should now show for both the image loading and click.

About

SSR Skeleton


Languages

Language:JavaScript 100.0%