title: How can I change an array in a state in React?
body: <p>I'm using a 2-dimensional array as a state. </p>
  
  <p>How can I update it?</p>
  
  <pre><code>getInitialState: function() {
      var board = [];
      for (var i = 0; i &lt; i_max; i++) {
          var innerArray = [];
          for (var j = 0; j &lt; j_max; j++) {
              innerArray.push("empty");
          }
          board.push(innerArray);
      }
      return {board: board};
  },
  </code></pre>
  
  <p>The line below doesn't seem to work:</p>
  
  <pre><code>this.setState({board[1][2]: "full"});
  </code></pre>
  
  <p>Edit: Why do I get downvoted?!</p>