From the course: TanStack Query: Efficient Data Fetching and State Management
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Installing TanStack Query - TanStack Query Tutorial
From the course: TanStack Query: Efficient Data Fetching and State Management
Installing TanStack Query
- [Instructor] Right now we're taking a look at the GitHub API, specifically for the Facebook React Project. Now, this has a ton of different fields available on it. So this is just a way of repeatably getting information from some sort of external data source into our front end application. So with TantStack Query, we can start to make use of this data by configuring our application to make use of TantStack. So over here in our App.tsx file, again, this is inside of github-app, inside of src, inside of App.tsx. This is where I'm going to make some adjustments. So the first thing that I want to do here is let's clean up some old stuff. We don't really need any of this count. This is the default from the project. Let's just go ahead and say, <div>GitHub Profile Component</div> Nice! Then we're going to remove those different imports that we no longer need, and we're going to replace them with something that we do need, which is the QueryClient and the QueryClientProvider from…