is there a way to make react App flex box without wrapping it inside a div?

const App = () => {
return (
<Router>
<Aside1 />
<Aside2/>
<Routes>
<Route path='/' element={<Home />} />
<Route path='/movies' element={<Movies />} />
<Route path='/tvshows' element={<TvShows />} />
</Routes>
</Router>
)
}
const App = () => {
return (
<Router>
<Aside1 />
<Aside2/>
<Routes>
<Route path='/' element={<Home />} />
<Route path='/movies' element={<Movies />} />
<Route path='/tvshows' element={<TvShows />} />
</Routes>
</Router>
)
}
how to make them flex ie aside1 and aside2 without wrapping inside div. is there a way or only option is using div?
1 Reply
Avinash
AvinashOP2y ago
found the solution
Want results from more Discord servers?
Add your server