Answer the question
In order to leave comments, you need to log in
How to render sequentially in reactjs?
Hello Here is the content of App.js
<div className="App">
<Header/>
<Navbar/>
<div className="routes" style={{margin: "0px 10% 0px"}}>
<Routes>
<Route exact path={"/"} element={<NewsTop />}/>
<Route exact path={"/:id"} element={<CardDetails />}/>
<Route exact path={"/politic"} element={<JustNews/>}/>
<Route exact path={"/politic/:id"} element={<CardDetails/>}/>
<Route exact path={"/society"} element={<Covid/>}/>
<Route exact path={"/society/:id"} element={<CardDetails/>}/>
<Route exact path={"/covid"} element={<War/>}/>
<Route exact path={"/covid/:id"} element={<CardDetails/>}/>
<Route exact path={"/sport"} element={<About />}/>
<Route exact path={"/sport/:id"} element={<CardDetails />}/>
<Route exact path={"/media"} element={<About />}/>
<Route exact path={"/media/:id"} element={<CardDetails />}/>
</Routes>
</div>
<Footer/>
</div>
Answer the question
In order to leave comments, you need to log in
As an option, you bind to axios and globally look if the download is in progress, then it does not display the footer. But if you are embarrassed that your footer is running due to loading, then it will be easier to just nail it to the bottom
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question