Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react routes multiple compoenents

<Routes>
 	<Route
	path="/"
	element={[
         <Header key={1} />,
  		 <LandingSection key={2}  />,
    	 <CardList key={3} /> ]}>
    </Route>
</Routes>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #routes #multiple #compoenents
ADD COMMENT
Topic
Name
8+6 =