title: const or let in React component
body: <p>Say I have a React component -- dumb or not -- and I want to grab something from the store and put it in a variable to make my code a bit more terse. Should I use const or let? Clearly the state will change.</p>
  
  <p>Here's an example of what I'm talking about. Again, I want to emphasize that myValues WILL change as user interacts with my app.</p>
  
  <pre><code>class MyComponent extends Component {
  
      render() {
  
          // Here, should I use const or let?
          const myValues = this.props.someData;
  
          return(
              &lt;div&gt;
  
              {myValues.map(item =&gt; (
                      &lt;SomeOtherComponent key={item.id} data={item} /&gt;
                  ))}
  
              &lt;/div&gt;
          );
      };
  }
  
  function mapStateToProps(state) {
      return {
          someData: state.someValuesComingFromApi
      }
  }
  
  export default connect(mapStateToProps)(MyComponent)
  </code></pre>