Skip to content

Commit c482411

Browse files
committed
Added new exmaple
1 parent b09eb4a commit c482411

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ const MyForm = () => (
116116
* [Submission Errors](#submission-errors)
117117
* [Third Party Components](#third-party-components)
118118
* [💥 Performance Optimization Through Subscriptions 💥](#-performance-optimization-through-subscriptions-)
119+
* [Independent Error Component](#independent-error-component)
119120
* [Loading and Initializing Values](#loading-and-initializing-values)
120121
* [Field Arrays](#field-arrays)
121122
* [Rendering](#rendering)
@@ -231,6 +232,11 @@ Yet, if some part of form state is needed inside of it, the
231232
[`FormSpy`](#formspy--reactcomponenttypeformspyprops) component can be used to
232233
attain it.
233234

235+
### [Independent Error Component](https://codesandbox.io/s/xoo3xq654p)
236+
237+
Demonstrates how to make an independent Error component to subscribe to and
238+
display the error for any form field.
239+
234240
### [Loading and Initializing Values](https://codesandbox.io/s/91w9ro3x9o)
235241

236242
Demonstrates how a form can be initialized, after fetching data, by passing in

0 commit comments

Comments
 (0)