rsnext/examples/with-cerebral/pages/other.js

27 lines
656 B
JavaScript
Raw Normal View History

import { Controller } from 'cerebral'
2017-09-23 16:30:22 +02:00
import Devtools from 'cerebral/devtools'
import { Container } from '@cerebral/react'
import Page from '../components/Page'
import clock from '../modules/clock'
const Other = (props) => {
const { stateChanges } = props
const controller = Controller({
devtools:
process.env.NODE_ENV === 'production' || typeof window === 'undefined'
? null
: Devtools({ host: 'localhost:8787' }),
modules: { clock },
stateChanges: stateChanges,
})
return (
<Container controller={controller}>
<Page title="Index Page" linkTo="/other" />
</Container>
)
2017-09-23 16:30:22 +02:00
}
export default Other