mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
19 lines
405 B
JavaScript
19 lines
405 B
JavaScript
|
import { connect } from 'react-redux'
|
||
|
import Clock from './Clock'
|
||
|
import AddCount from './AddCount'
|
||
|
|
||
|
export default connect(state => state)(({ title, lastUpdate, light }) => {
|
||
|
return (
|
||
|
<div>
|
||
|
<h1>Redux: {title}</h1>
|
||
|
<Clock lastUpdate={lastUpdate} light={light} />
|
||
|
<AddCount />
|
||
|
<style jsx>{`
|
||
|
h1 {
|
||
|
font-size: 20px;
|
||
|
}
|
||
|
`}</style>
|
||
|
</div>
|
||
|
)
|
||
|
})
|