mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-17 10:39:09 +00:00
flowtyped everything, some functional, safety, and structural changes
This commit is contained in:
parent
6f3eca7a64
commit
d2aecb38ca
92 changed files with 17554 additions and 1440 deletions
24
UI/pages/testrpc.js
Normal file
24
UI/pages/testrpc.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
import * as React from 'react'
|
||||
import RPC from '../config/rpc'
|
||||
|
||||
export default class TestRPC extends React.Component {
|
||||
static async getInitialProps (ctx) {
|
||||
return {
|
||||
// hello: await RPC.hello('world')
|
||||
}
|
||||
}
|
||||
|
||||
componentDidMount () {
|
||||
window.$RPC = RPC
|
||||
}
|
||||
|
||||
componentDidCatch (error, errorInfo) {
|
||||
if (error) {
|
||||
console.log(error, errorInfo)
|
||||
}
|
||||
}
|
||||
|
||||
render () {
|
||||
return <div>hello, { this.props.hello }</div>
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue