I REALLY don't know why i am getting this syntax error:
30 | })
31 | */
32 | function mapStateToProps(state) {
| ////////////////// ^
33 | return {
34 | count: state.count
35 | }
**Here is my code: **
import React from 'react';
import { connect } from 'react-redux';
class Counter extends React.Component {
  increment = () => {
  }
  decrement = () => {
  }
  render() {
    return (
      <div>
        <h2>Counter</h2>
        <div>
          <button onClick={this.decrement}>-</button>
          <span>{this.props.count}</span>
          <button onClick={this.increment}>+</button>
        </div>
      </div>
    )
  }
  /* This try is showing me the same error in the same place
  const mapStateToProps = state => ({
    count: state.count
  })
  */
  function mapStateToProps(state) { //This is the line. Right in the "m"
    return {
      count: state.count
    }
  }
}
export default connect(mapStateToProps)(Counter);
I am trying this guide: https://daveceddia.com/how-does-redux-work/
 
     
     
     
    