Skip to content

Commit

Permalink
Merge branch 'canary' into dimavoytenko/next-playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Aug 14, 2023
2 parents 4cd7a18 + 3958fc0 commit 19a5d07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 19a5d07

Please sign in to comment.