Skip to content

Commit a884730

Browse files
authored
fix: Fix some incorrect linked URLs (#1005)
1 parent e7cdd0f commit a884730

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/advanced-usage.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ Error messages are visual feedback to our users when there are issues with their
269269

270270
## Connect Form {#ConnectForm}
271271

272-
When we are building forms, there are times when our input lives inside of deeply nested component trees, and that's when [FormContext](/docs/useFormContext) comes in handy. However, we can further improve the Developer Experience by creating a `ConnectForm` component and leveraging React's [renderProps](https://reactjs.org/docs/render-props.html). The benefit is you can connect your input with React Hook Form much easier.
272+
When we are building forms, there are times when our input lives inside of deeply nested component trees, and that's when [FormContext](/docs/useformcontext) comes in handy. However, we can further improve the Developer Experience by creating a `ConnectForm` component and leveraging React's [renderProps](https://reactjs.org/docs/render-props.html). The benefit is you can connect your input with React Hook Form much easier.
273273

274274
```javascript copy
275275
import { FormProvider, useForm, useFormContext } from "react-hook-form"
@@ -303,9 +303,9 @@ export const App = () => {
303303

304304
## FormProvider Performance {#FormProviderPerformance}
305305

306-
React Hook Form's [FormProvider](/docs#useFormContext) is built upon [React's Context](https://reactjs.org/docs/context.html) API. It solves the problem where data is passed through the component tree without having to pass props down manually at every level. This also causes the component tree to trigger a re-render when React Hook Form triggers a state update, but we can still optimise our App if required via the example below.
306+
React Hook Form's [FormProvider](/docs/formprovider) is built upon [React's Context](https://reactjs.org/docs/context.html) API. It solves the problem where data is passed through the component tree without having to pass props down manually at every level. This also causes the component tree to trigger a re-render when React Hook Form triggers a state update, but we can still optimise our App if required via the example below.
307307

308-
**Note:** Using React Hook Form's [Devtools](/dev-tools) alongside [FormProvider](/docs/useformcontext) can cause performance issues in some situations. Before diving deep in performance optimizations, consider this bottleneck first.
308+
**Note:** Using React Hook Form's [Devtools](/dev-tools) alongside [FormProvider](/docs/formprovider) can cause performance issues in some situations. Before diving deep in performance optimizations, consider this bottleneck first.
309309

310310
```javascript copy sandbox="https://codesandbox.io/s/provider-perf-forked-r24ho"
311311
import React, { memo } from "react"

0 commit comments

Comments
 (0)