study_xxqg/web/xxqg/src/compents/pages/Help.tsx

30 lines
682 B
TypeScript
Raw Normal View History

2022-09-25 15:58:04 +00:00
import React, {Component} from "react";
2022-09-26 11:57:35 +00:00
import {getAbout} from "../../utils/api";
2022-09-25 15:58:04 +00:00
class Help extends Component<any, any> {
constructor(props: any) {
super(props);
this.state = {
about: ""
};
}
componentDidMount() {
getAbout().then((value)=>{
this.setState({
about:value.data
})
})
}
render() {
return <>
<h2 style={{margin:10}}><a href="https://github.com/johlanse/study_xxqg">https://github.com/johlanse/study_xxqg</a></h2>
<br/><h2 style={{margin:10}}>{this.state.about}</h2>
</>
}
}
export default Help