Import airports and flights data
This commit is contained in:
@ -1,9 +1,13 @@
|
||||
import { useState } from 'react';
|
||||
|
||||
import './App.css';
|
||||
|
||||
function App() {
|
||||
let [content, setContent] = useState("Loading…")
|
||||
fetch('/api/').then(res => res.json()).then(data => setContent(data['message']))
|
||||
return (
|
||||
<div className="App">
|
||||
Hello world!
|
||||
{content}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user