ab95c6d9a1
* use useSelector and useDispatch * update README * fix space and trailing comma
15 lines
347 B
JavaScript
15 lines
347 B
JavaScript
import { useSelector } from 'react-redux'
|
|
import Clock from './clock'
|
|
import Counter from './counter'
|
|
|
|
export default () => {
|
|
const lastUpdate = useSelector(state => state.lastUpdate)
|
|
const light = useSelector(state => state.light)
|
|
|
|
return (
|
|
<div>
|
|
<Clock lastUpdate={lastUpdate} light={light} />
|
|
<Counter />
|
|
</div>
|
|
)
|
|
}
|