title: Reactjs set state true or false
body: <p>How can i set state for loaderSimpleStory() and FlightStatusStory  .</p>
  
  <p>When loaderSimpleStory() is true FlightStatusStory will be false and vice versa.</p>
  
  <pre><code>const LoadingStory = () =&gt; {
    return (
      &lt;div className="content-wrapper"&gt;
        {loaderSimpleStory()}
        &lt;div className="container-subnav"&gt;
          &lt;FlightStatusStory /&gt;
        &lt;/div&gt;
        &lt;div className="headline"&gt;{headlineSimpleStory()}&lt;/div&gt;
        {linkSimpleStory()}
        {richTextSimpleStory()}
      &lt;/div&gt;
    );
  };
  </code></pre>
  
  <p>any help would be really helpful.</p>