From 2cffb3e83d2cc49be4f5ec220973c70c4a0b4bee Mon Sep 17 00:00:00 2001
From: Refusado
Date: Tue, 2 Apr 2024 07:29:36 -0300
Subject: [PATCH 1/4] update social media logos
---
src/components/Nav.module.css | 6 +++---
src/components/Nav.tsx | 27 ++++++++++++---------------
2 files changed, 15 insertions(+), 18 deletions(-)
diff --git a/src/components/Nav.module.css b/src/components/Nav.module.css
index f2bfc1fd0..e989410fa 100644
--- a/src/components/Nav.module.css
+++ b/src/components/Nav.module.css
@@ -7,17 +7,16 @@
}
.icon {
- transition: 0.3s all;
z-index: 10;
max-width: 50px;
min-width: 35px;
flex: 1;
- margin-right: 5px;
}
.icon svg {
- height: 28px;
+ height: 24px;
fill: white;
+ transition: 0.3s all;
}
.icon svg:hover {
@@ -84,6 +83,7 @@
top: 15px;
z-index: 1;
display: flex;
+ gap: 8px;
}
.gitHubButtonWrap > span > span {
diff --git a/src/components/Nav.tsx b/src/components/Nav.tsx
index 93f2609ea..608e6dd01 100644
--- a/src/components/Nav.tsx
+++ b/src/components/Nav.tsx
@@ -57,9 +57,8 @@ export default function Nav() {
rel="noopener noreferrer"
title="React Hook Form Discord"
>
-
@@ -141,7 +141,7 @@ append({ firstName: 'bill', lastName: 'luo' }); ✅`}
- we do not support circular reference. Refer to this {" "}
+ we do not support circular reference. Refer to this{" "}
{
## FormProvider Performance {#FormProviderPerformance}
-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.
+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.
**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.
diff --git a/src/content/faqs.mdx b/src/content/faqs.mdx
index 522614cea..4e2df5a45 100644
--- a/src/content/faqs.mdx
+++ b/src/content/faqs.mdx
@@ -12,7 +12,8 @@ Performance is one of the primary reasons why this library was created. React Ho
## How to create an accessible input error and message? {#Howtocreateanaccessibleinputerrorandmessage}
-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.
+React Hook Form is based on Uncontrolled Components, which gives you the ability to easily build an accessible custom form.
+_(For more information about Uncontrolled Components, read [Sharing State Between Components](https://react.dev/learn/sharing-state-between-components))_
```javascript copy
import React from "react"