title: Can I use none-pure object as state in React?
body: <p>I want to use function instance, not pure object, as state object in react. But I'm not sure if that's ok:</p>
  
  <pre><code>class Test extends Component {
    constructor(props) {
      super(props);
      this.state = new Domain();
    }
  }
  </code></pre>