mirror of
https://github.com/c8r/x0.git
synced 2024-09-11 13:45:52 +03:00
19 lines
283 B
JavaScript
19 lines
283 B
JavaScript
import React from 'react'
|
|
|
|
export default class App extends React.Component {
|
|
state = {
|
|
count: 32,
|
|
}
|
|
|
|
update = fn => this.setState(fn)
|
|
|
|
render () {
|
|
const { render, routes } = this.props
|
|
|
|
return render({
|
|
...this.state,
|
|
update: this.update
|
|
})
|
|
}
|
|
}
|