How can i set state for loaderSimpleStory() and FlightStatusStory .
When loaderSimpleStory() is true FlightStatusStory will be false and vice versa.
const LoadingStory = () => {
return (
<div className="content-wrapper">
{loaderSimpleStory()}
<div className="container-subnav">
<FlightStatusStory />
</div>
<div className="headline">{headlineSimpleStory()}</div>
{linkSimpleStory()}
{richTextSimpleStory()}
</div>
);
};
any help would be really helpful.
Aucun commentaire:
Enregistrer un commentaire