1
1
mirror of https://github.com/c8r/x0.git synced 2024-09-11 13:45:52 +03:00
x0/demo/_app.js
2018-05-20 15:35:19 -04:00

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
})
}
}