2020-01-07 20:19:11 +00:00
|
|
|
import React from 'react';
|
|
|
|
import './App.scss';
|
2020-01-07 21:03:59 +00:00
|
|
|
import config from './config';
|
2020-01-07 20:19:11 +00:00
|
|
|
|
|
|
|
function App() {
|
2020-01-07 21:03:59 +00:00
|
|
|
let fetchData = {};
|
|
|
|
fetch(config.apiAddress).then(res => {console.log(res);fetchData = res.body}).then(() => console.log(fetchData))
|
2020-01-07 20:19:11 +00:00
|
|
|
return (
|
|
|
|
<div className="App">
|
|
|
|
<h1>React Boilerplate</h1>
|
2020-01-07 21:03:59 +00:00
|
|
|
{fetchData ? <p></p> : <></>}
|
2020-01-07 20:19:11 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|