title: Set state objects directly and call setState
body: <p>In my component existing user data are edited. Each user dataset has plenty of properties. Is it ok to set a value of an object like in the example below. Or how would be correct?</p>
  
  <pre><code>  getInitialState() {
      return {
        user: {age: 0, id: 0, weight: 0, size: 0, ...},
      };
    },
  
    componentWillReceiveProps: function (nextProps) {
      this.setState({
        user: nextProps.user
      });
    },
  
    editUserAge(age) {
      this.state.user.age = age;
  
      this.setState({
        user: this.state.user
      });
    }
  </code></pre>