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