Skip to content

Commit

Permalink
(watch): make examples heading real heading in html
Browse files Browse the repository at this point in the history
  • Loading branch information
honey32 committed Mar 29, 2024
1 parent 319173f commit f4eeaf9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/content/docs/useform/watch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,11 @@ useEffect(() => {
- This API will trigger re-render at the root of your app or form, consider using a callback or the [useWatch](/docs/usewatch) api if you are experiencing performance issues.
- `watch` result is optimised for render phase instead of `useEffect`'s deps, to detect value update you may want to use an external custom hook for value comparison.

</Admonition>

**Examples:**
### Examples:

---

**Watch in a Form**
#### Watch in a Form

<TabGroup buttonLabels={["TS", "JS"]}>

Expand Down Expand Up @@ -207,7 +205,7 @@ function App() {

</TabGroup>

**Watch in Field Array**
#### Watch in Field Array

<TabGroup buttonLabels={["TS", "JS"]}>

Expand Down

0 comments on commit f4eeaf9

Please sign in to comment.