Put in order · JavaScript and React course · Module 6: React Router

Route definition with a parameter

Arrange the Route syntax with a dynamic id parameter:

Items to put in order

  • element={<UserProfile />}
  • <Route
  • />
  • path="/user/:id"

You can check the correct answer by solving this task in the CodeWorlds game.