title: How to fix "Expected to return a value in arrow function" with reactjs?
body: <p>I have two function in my react-app components</p>
  <pre><code>componentDidMount() {
          if(Object.keys(this.props.praticiens).length&gt;0)
              Object.keys(this.props.praticiens).map((praticien) =&gt; {
                  if(this.props.praticiens[praticien].identifiant_user === getUrlParams(window.location.hash).identifiant_user)
                      this.setState({
                          praticien:this.props.praticiens[praticien].id_user
                      })
              })
      }
  
      handleChangePraticien = (praticien) =&gt; {
          this.setState({ praticien }, () =&gt; {
              Object.keys(this.props.praticiens).map((praticien) =&gt; {
                  if(this.state.praticien === this.props.praticiens[praticien].id_user)
                      this.props.selectPraticienFunction(this.props.praticiens[praticien].identifiant_user);
              })
          })
      }
  </code></pre>
  <p>When I run it, I get:</p>
  <pre><code>Line 26:64:  Expected to return a value in arrow function  array-callback-return
    Line 36:64:  Expected to return a value in arrow function  array-callback-return
  </code></pre>
  <p>Such as the Line 26 is beginning <code>Object.keys(this.props.praticiens).map((praticien) =&gt; {</code> on componentDidMount and Line 36 is the same line on the handleChangePraticien function</p>
  <p>How can I fix it ?</p>