title: warnin arrow function array-callback-return on react js
body: <pre><code> static getDerivedStateFromProps(nextProps, prevState) {
  const { claimList, claimOpenList } = nextProps
  
  const claimsNew = [...claimList]
  
  console.log('getDerivedStateFromProps &gt; claimsList &gt; ', claimList)
  
  claimOpenList.map(item =&gt; {
    const value = claimList.find(val =&gt; String(val.claimid) === String(item.claimid))
    if (value === undefined) claimsNew.push(item)
  })
  return {
  
    claims: claimsNew,
  }
  </code></pre>
  
  <p>}</p>
  
  <p>it works and do what is suppoused to do, but i want to get rid of this warning "Expected to return a value at the end of arrow function array-callback-return" it says the problem is on the line <code>claimOpenList.map(item =&gt; {</code> i really want to learn how to solve this warnings since its not the only place that it appears,i belive that understanding this one im going to be able to figure out the other ones, thanks for your time and help</p>
  
  <p>i have looked another similar problems on stack but they dont seems to be the same as mine</p>