We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b396820 commit 61620d0Copy full SHA for 61620d0
docs/faq.md
@@ -90,12 +90,13 @@ return (
90
<div>
91
<button onClick={submit}>Submit</button> // ❌ Not overwritten closure value
92
<button onClick={event => submit(event)}>Submit</button> // ✅
93
- <Form onSubmit={onSubmit} render={({ handleSubmit })=> {
94
- submit = handleSubmit
95
- return <form>
96
- ...fields go here...
97
- </form>
98
- }}>
+ <Form
+ onSubmit={onSubmit}
+ render={({ handleSubmit }) => {
+ submit = handleSubmit
+ return <form>...fields go here...</form>
+ }}
99
+ />
100
</div>
101
)
102
```
0 commit comments