How should I clear state in componentWillUnmount?
<p>I set code like below.</p>

<pre><code>componentWillUnmount() { 
    this.setState({'modal':false}) or this.setState({})
}
</code></pre>

<p>But state is not clear. How can I do this?
I need clear state when leave component.</p>