Unverified Commit 3958fc07 authored by Lacy Morrow's avatar Lacy Morrow Committed by GitHub

Update 05-client-side-rendering.mdx with latest tanstack query version (#54009)



### What?
Update Tanstack query URL

### Why?
The latest Tanstack query version is v4, the docs currently list v3
parent 5b16f854
......@@ -17,7 +17,7 @@ After the page has been loaded for the first time, navigating to other pages on
In Next.js, there are two ways you can implement client-side rendering:
1. Using React's `useEffect()` hook inside your pages instead of the server-side rendering methods ([`getStaticProps`](/docs/pages/building-your-application/data-fetching/get-static-props) and [`getServerSideProps`](/docs/pages/building-your-application/data-fetching/get-server-side-props)).
2. Using a data fetching library like [SWR](https://swr.vercel.app/) or [TanStack Query](https://tanstack.com/query/v3/) to fetch data on the client (recommended).
2. Using a data fetching library like [SWR](https://swr.vercel.app/) or [TanStack Query](https://tanstack.com/query/latest/) to fetch data on the client (recommended).
Here's an example of using `useEffect()` inside a Next.js page:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment