Skip to content

Commit 57360a2

Browse files
authored
Merge pull request basarat#467 from mareklaco/patch-2
Fix small issues in React examples
2 parents b3ec251 + 5dbdc70 commit 57360a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/jsx/react.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class MyComponent extends React.Component<Props, {}> {
8686
}
8787
}
8888

89-
<MyComponent foo="bar" />
89+
<MyComponent header={<h1>Header</h1>} body={<i>body</i>} />
9090
```
9191

9292
### React JSX Tip: Accept an instance of a Component
@@ -183,7 +183,7 @@ class FocusingInput extends React.Component<{ value: string, onChange: (value: s
183183
<input
184184
ref={(input) => this.input = input}
185185
value={this.props.value}
186-
onChange={(e) => { this.props.onChange(this.ctrls.input.value) } }
186+
onChange={(e) => { this.props.onChange(this.input.value) } }
187187
/>
188188
);
189189
}

0 commit comments

Comments
 (0)