React Syntax Error : Expected corresponding JSX closing tag for <img>

The message returned by the compiler is telling you there is no closing tag for the img element. JSX isn't the same as html.

<img src = {this.props.user.img} alt="logo"></img>

or

<img src = {this.props.user.img} alt="logo" />

As the error explain itself you need to close the image tag in camper component.

<td>
    <img src = {this.props.user.img} alt="logo" />{this.props.user.userName}
</td >

This should work.


You need to close your img tag with a closing />:

<img src={this.props.user.img} alt="logo" />

JSX is not as lenient as HTML when it comes to properly closing tags.