scrimba
React Bootcamp Course
Challenge: React Router Practice Part 1
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Challenge: React Router Practice Part 1
AboutCommentsNotes
Challenge: React Router Practice Part 1
Expand for more info
App.js
run
preview
console
import React from "react"

import Home from "./Home"
import Products from "./Products"

function App() {
return (
<div>
<nav>
<a>Home</a>
<a>Products</a>
</nav>
{/*
Route between 2 components depending on the path:
1. Home page ("/")
2. Products Page ("/products")

** Home Page **
• Can be a basic home page, maybe welcoming the user to your site and giving some background about yourself as a developer

** Products Page **
• Using an array of data for your products (provided for you), map over that data to show each item and some information on the products page as a list of available products.
*/}

</div>
)
}

export default App
Console
/
-5:02