Add react

This commit is contained in:
2020-12-30 18:08:01 -05:00
parent 2a36f20a4c
commit 8a6e029f83
5268 changed files with 296765 additions and 12 deletions

22
src/app.js Normal file
View File

@ -0,0 +1,22 @@
import React from 'react';
class Verification extends React.Component {
constructor(props) {
super(props);
}
componentDidMount() {
const apiUrl = 'https://thanos.nightmare.haus/api/verifications';
fetch(apiUrl)
.then((response) => response.json())
.then((data) => console.log('The data from the call: ', data));
}
render() {
return (
<div><h1>Verifications have loaded. See logs.</h1></div>
);
}
}
ReactDOM.render(
<Verification />,
document.getElementById('react_app')
);