0
3
JRJose Romero
reactroutereact-router-dom
React TypeScript RecipesThe code declares a route with the path "/" and an element representing the App component. The route is available to views that are placed inside the folder "/" (i.e. /pages/).
Library: react
Shortcut: react.route.create
import { Route } from 'react-router-dom';
<Route path="/" element={<App />}>