Browse Source

Add missing semicolon in example code (#835)

main
Joep van der Heijden 7 years ago
committed by Dan Abramov
parent
commit
1c9b6139c4
  1. 2
      content/docs/render-props.md

2
content/docs/render-props.md

@ -104,7 +104,7 @@ As a first pass, you might try rendering the `<Cat>` *inside `<Mouse>`'s `render
```js ```js
class Cat extends React.Component { class Cat extends React.Component {
render() { render() {
const mouse = this.props.mouse const mouse = this.props.mouse;
return ( return (
<img src="/cat.jpg" style={{ position: 'absolute', left: mouse.x, top: mouse.y }} /> <img src="/cat.jpg" style={{ position: 'absolute', left: mouse.x, top: mouse.y }} />
); );

Loading…
Cancel
Save