1
0
Fork 0
This repository has been archived on 2022-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
sudoscientist-js-frontend/src/components/About.js

27 lines
635 B
JavaScript
Raw Normal View History

2019-07-28 00:24:05 +00:00
import React from 'react';
2019-08-04 01:28:31 +00:00
import 'github-markdown-css'
2019-07-28 00:24:05 +00:00
import ReactMarkdown from 'react-markdown';
import AboutMarkdown from '../static/about.md';
class About extends React.Component {
constructor () {
super();
this.state = { about: '' };
}
componentWillMount() {
fetch(AboutMarkdown).then(res => res.text()).then(text => this.setState({ markdown: text }));
}
render () {
const { markdown } = this.state;
return (
2019-08-04 01:28:31 +00:00
<div className="markdown-body">
<ReactMarkdown source={markdown} />
2019-07-28 00:24:05 +00:00
</div>
);
}
2019-06-22 20:53:59 +00:00
}
export default About;