mirror of
https://github.com/GithubOrgProjectPiza/frontend.git
synced 2026-09-04 08:36:08 +02:00
Add Connection between MainPage and Server
add use Query to get data from the Server
This commit is contained in:
+8
-1
@@ -16,11 +16,18 @@ import Registrierung from "./Pages/registrierung";
|
||||
import Warenkorb from "./Pages/warenkorb";
|
||||
import Listenansicht from "./Pages/listenansicht";
|
||||
import "./App.css";
|
||||
import MainPage from "./Components/mainpage";
|
||||
|
||||
import { QueryClient, QueryClientProvider, useQuery } from "react-query";
|
||||
|
||||
const queryClient = new QueryClient();
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="App">
|
||||
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<MainPage></MainPage>
|
||||
</QueryClientProvider>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user