mirror of
https://github.com/c8r/x0.git
synced 2024-10-26 15:15:04 +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
|
|
})
|
|
}
|
|
}
|