Skip to content

Commit 3e59ebb

Browse files
updates references to the updated react documentation (react.dev) (#1058)
* update social media logos * improve social media icons size * Update Nav.module.css * updates the official react references to the updated resources --------- Co-authored-by: Refusado <[email protected]> Co-authored-by: Beier (Bill) <[email protected]>
1 parent 1058a62 commit 3e59ebb

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/components/UseFieldArrayContent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ export default function UseFieldArrayContent({ api }: { api: any }) {
5252
identifier named <code>id</code> which is used for <code>key</code>{" "}
5353
prop. For more information why this is required:{" "}
5454
<a
55-
href="https://reactjs.org/docs/lists-and-keys.html#keys"
55+
href="https://react.dev/learn/rendering-lists#keeping-list-items-in-order-with-key"
5656
target="_blank"
5757
rel="noopener noreferrer"
5858
>
59-
https://reactjs.org/docs/lists-and-keys.html#keys
59+
https://react.dev/learn/rendering-lists
6060
</a>
6161
</p>
6262
<p>
@@ -141,7 +141,7 @@ append({ firstName: 'bill', lastName: 'luo' }); ✅`}
141141
</li>
142142
<li>
143143
<p>
144-
we do not support circular reference. Refer to this {" "}
144+
we do not support circular reference. Refer to this{" "}
145145
<a
146146
href="https://github.com/react-hook-form/react-hook-form/issues/4055"
147147
target="_blank"

src/content/advanced-usage.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ export const App = () => {
303303

304304
## FormProvider Performance {#FormProviderPerformance}
305305

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.
306+
React Hook Form's [FormProvider](/docs/formprovider) is built upon [React's Context](https://react.dev/learn/passing-data-deeply-with-context) 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

308308
**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

src/content/faqs.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Performance is one of the primary reasons why this library was created. React Ho
1212

1313
## How to create an accessible input error and message? {#Howtocreateanaccessibleinputerrorandmessage}
1414

15-
React Hook Form is based on [Uncontrolled Components](https://reactjs.org/docs/uncontrolled-components.html), which gives you the ability to easily build an accessible custom form.
15+
React Hook Form is based on Uncontrolled Components, which gives you the ability to easily build an accessible custom form.
16+
_(For more information about Uncontrolled Components, read [Sharing State Between Components](https://react.dev/learn/sharing-state-between-components))_
1617

1718
```javascript copy
1819
import React from "react"

0 commit comments

Comments
 (0)