Skip to content
This repository was archived by the owner on Jun 15, 2022. It is now read-only.

Commit 864b35b

Browse files
committed
add field names section in README.md
1 parent 55cb1fd commit 864b35b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,20 @@ export default function App() {
9393
9494
[![Edit React Hook Form - useTypedController](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/react-hook-form-usetypedcontroller-23qv1?fontsize=14&hidenavigation=1&theme=dark)
9595
96+
## Field Names
97+
98+
| Field Path | Field Name |
99+
| :------------------ | :----------- |
100+
| `foo` | `foo` |
101+
| `['foo', 'bar']` | `foo.bar` |
102+
| `['foo', 0]` | `foo[0]` |
103+
| `['foo', '0']` | `foo.0` |
104+
| `['foo', 1]` | `foo[1]` |
105+
| `['foo', 0, 'bar']` | `foo[0].bar` |
106+
| `['foo']` | `foo` |
107+
| `['foo', 'bar']` | `foo.bar` |
108+
| `['foo', 'bar', 0]` | `foo.bar[0]` |
109+
96110
## Backers
97111
98112
Thanks goes to all our backers! [[Become a backer](https://opencollective.com/react-hook-form#backer)].

0 commit comments

Comments
 (0)