Skip to content

Commit 670a102

Browse files
authored
Add button form attribute example to external submit (#750)
1 parent ac74c38 commit 670a102

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/external-submit/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ const App = () => {
4646
>
4747
External Submit via closure
4848
</button>
49+
<button
50+
type="submit"
51+
form="exampleForm"
52+
style={{ marginTop: 10 }}
53+
>
54+
External Submit via form attribute
55+
</button>
4956
</div>
5057
<Form
5158
onSubmit={onSubmit}

0 commit comments

Comments
 (0)