updating objects with setState in React
<p>How can I pass multiple states to <code>setState</code>? Here's an example:</p>

<pre><code>getInitialState: function() {
  return {
    list: [],
    newFilm: {},
    searchWord: '',
    searchDetails: {}
  }
},

componentDidMount: function() {
  this.setState({
    searchDetails:someData,
    newFilm: 'I am first text',
  })
}
</code></pre>

<p>The question is:</p>

<p>Is the example syntactically correct ? </p>