diff --git a/README.md b/README.md index 1cf0009202..808ad63cf3 100644 --- a/README.md +++ b/README.md @@ -40,10 +40,8 @@ You can improve it by sending pull requests to [this repository](https://github. We have several examples [on the website](https://reactjs.org/). Here is the first one to get you started: ```jsx -class HelloMessage extends React.Component { - render() { - return
Hello {this.props.name}
; - } +function HelloMessage({ name }) { + return
Hello {name}
; } ReactDOM.render(