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

Commit 22c1268

Browse files
authored
Merge pull request #974 from ralphstodomingo/patch-2
Update Immutable docs
2 parents 0b34518 + e49f9c2 commit 22c1268

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/guides/immutable.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ import {
1313
// ... other imports
1414

1515
class MyForm extends Component {
16+
onFormSubmit(formObj) {
17+
// ... access form fields e.g. formObj.get('name');
18+
}
1619
render() {
1720
return (
18-
<Form model="user">
21+
<Form model="user" onSubmit={this.onFormSubmit}>
1922
<Control model=".name" />
2023

2124
{/* ... other controls */}

0 commit comments

Comments
 (0)