import React from 'react' import Link from 'next/link' import { inject, observer } from 'mobx-react' import Clock from './Clock' @inject('store') @observer class Page extends React.Component { componentDidMount() { this.props.store.start() } componentWillUnmount() { this.props.store.stop() } render() { return (

{this.props.title}

) } } export default Page