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
class Cat extends React.Component {
render() {
const mouse = this.props.mouse
const mouse = this.props.mouse;
return (
<img src="/cat.jpg" style={{ position: 'absolute', left: mouse.x, top: mouse.y }} />
);

Loading…
Cancel
Save