2018-12-21 09:56:36 +01:00
|
|
|
import * as React from 'react'
|
|
|
|
import Link from 'next/link'
|
|
|
|
|
|
|
|
export default class About extends React.Component {
|
2019-01-06 16:58:06 +01:00
|
|
|
state = { name: '' }
|
2018-12-21 09:56:36 +01:00
|
|
|
|
|
|
|
async componentDidMount () {
|
|
|
|
const name = await window.getName()
|
|
|
|
this.setState({ name })
|
|
|
|
}
|
|
|
|
|
|
|
|
render () {
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<p>About {this.state.name}</p>
|
|
|
|
|
|
|
|
<Link href='/'>
|
|
|
|
<a>back</a>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|