Create an ES6 class, with the same name, that extends React.Component
.
Add a single empty method to it called render()
.
Move the body of the function into the render()
method.
Replace props
with this.props
in the render()
body.
Delete the remaining empty function declaration.