git clone https://github.com/valentingorr/wres-boilerplate.git .
or
git clone https://github.com/valentingorr/advanced-wres-boilerplate.git .
then
npm install --legacy-peer-deps
constructor(props) {
super(props);
this.state = { apiResponse: "" };
}
callAPI() {
fetch("http://localhost:9000/testAPI")
.then(res => res.text())
.then(res => this.setState({ apiResponse: res }));
}
componentWillMount() {
this.callAPI();
}