title: Push data from multiple inputs to state array
body: <p>My program generates few inputs and i try to push data to my state's array's </p>
  
  <pre><code>export default class TransmittersTable extends Component {
    constructor() {
      super()
      this.state = {
        axisX: [],
        axisY:[],
        power: [],
      }
    }
    updateAxisX(e) {
      this.setState({
        axisX: this.state.axisX.push(e.target.value)
      })
    }
    updateAxisY(e) {
      this.setState({
        axisY: this.state.axisY.push(e.target.value)
      })
    }
    updateAxisPower(e) {
      this.setState({
        power: this.state.power.push(e.target.value)
      })
    }
    generateTransmittersItems(){
      let transmitters = [];
      for(let i = 0; i &lt; this.props.numberOfTransmitters; i++) {
        transmitters.push(
          &lt;tr&gt;
            &lt;td&gt;&lt;input id={i} ref="axisX" type="text" onChange={this.updateAxisX.bind(this)}/&gt;&lt;/td&gt;
            &lt;td&gt;&lt;input id={i} ref="axisY" type="text" onChange={this.updateAxisY.bind(this)}/&gt;&lt;/td&gt;
            &lt;td&gt;&lt;input id={i} ref="power" type="text" onChange={this.updateAxisPower.bind(this)}/&gt;&lt;/td&gt;
          &lt;/tr&gt;
        );
      }
      return transmitters
    }
    componentWillMound(){}
    render() {
      return (
        &lt;table&gt;
          &lt;thead&gt;
            &lt;tr&gt;
              &lt;th&gt;Axis X&lt;/th&gt;
              &lt;th&gt;Axis Y&lt;/th&gt;
              &lt;th&gt;Power&lt;/th&gt;
            &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
            {this.generateTransmittersItems()}
          &lt;/tbody&gt;
        &lt;/table&gt;
      )
    }
  }
  </code></pre>
  
  <p>In first row of inputs evrything is okay but if i try to push another value form another row of input's to the same state array (ex. axisX) my console send me this error "this.state.axisX.push is not a function".
  What i did wrong and what i have to do to push more values to the same array from input using the same function?</p>