### Installing and Configuring Crossroad in React
Source: https://github.com/franciscop/crossroad/blob/master/readme.md
This section covers the installation of the Crossroad library using npm and provides a minimal example of how to import and use its core components, Router, Switch, and Route, to define simple routes for a React application.
```javascript
npm i crossroad
```
```javascript
import Router, { Switch, Route } from "crossroad";
export default function App() {
return (
Navigate using the menu above
Details for item {id}
User: {userId}
Book: {bookId}
Category: {params.category}
Product ID: {params.id}
Variant: {params.variant || "default"}
Showing data for {month}/{year}
Year type: {typeof year}
Active Filters: {JSON.stringify(query)}