import React from 'react' import Link from 'next/link' import { Subscribe } from 'unstated' import { ClockContainer, CounterContainer } from '../containers' import { Clock, Counter } from '../components' class About extends React.Component { componentWillUnmount () { clearInterval(this.timer) } render () { return ( {(clock, counter) => { this.timer = clock.interval return (
) }}
) } } export default About