Skip to content

Commit

Permalink
Update docs/02-app/02-api-reference/04-functions/use-pathname.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
delbaoliveira committed Jun 12, 2023
1 parent 608e367 commit 63be651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/02-app/02-api-reference/04-functions/use-pathname.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function ExampleClientComponent() {

`usePathname` intentionally requires using a [Client Component](/docs/getting-started/react-essentials). It's important to note Client Components are not a de-optimization. They are an integral part of the [Server Components](/docs/getting-started/react-essentials) architecture.

For example, a Client Component with `usePathname` will be rendered into HTML on the initial page load. When navigating to a new route, this component does not need to be refetched. Instead, the component can be downloaded once (in the client JavaScript bundle) and update what it renders based on the current state.
For example, a Client Component with `usePathname` will be rendered into HTML on the initial page load. When navigating to a new route, this component does not need to be re-fetched. Instead, the component is downloaded once (in the client JavaScript bundle), and re-renders based on the current state.

> **Good to know:**
>
Expand Down

0 comments on commit 63be651

Please sign in to comment.