import React from 'react'; import { Head } from '@react-ssr/express'; interface IndexProps { user: any; } export default (props: IndexProps) => { const [message, setMessage] = React.useState('waiting...'); const onClick = () => setMessage('This is a react-ssr!'); return ( An example of @react-ssr/express

Hello {props.user.name}!

Message from state: {message}

); };