React.js Video Game Discovery App Project (Part 2)

  • Post author:
  • Post category:General
  • Post comments:0 Comments
  • Post last modified:August 1, 2024
  • Reading time:1 mins read

Install React Query

npm i @tanstack/react-query@4.28

Edit main.tsx

import "bootstrap/dist/css/bootstrap.css";
import React from "react";
import ReactDOM from "react-dom/client";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import App from "./App";
import "./index.css";

const queryClient = new QueryClient();

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
  <React.StrictMode>
    <QueryClientProvider client={queryClient}>
      <App />
    </QueryClientProvider>
  </React.StrictMode>
);

Leave a Reply