0

Eslint notice error in create-react-app

let screamItem = this.state.screams ? (
  this.state.screams.map(scream => {
    <p>{scream.body}</p>
  })
) : (
  <p>No result</p>
)

When I render list item "scream" by map() function, but Eslint notice that error. I don't know why, please help me!

Nick Parsons
  • 38,409
  • 6
  • 31
  • 57
Vietnt
  • 1
  • 1

0 Answers0