Import airports and flights data

This commit is contained in:
2023-08-11 18:07:34 +02:00
parent a35e1bf093
commit 4d61358e03
4 changed files with 52 additions and 2 deletions

View File

@ -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>
);
}