I was trying to render my Carrito.js component when the user access /carrito but the component is not rendering. I tried using <Link to='/carrito /> Carrito </Link> and the anchor tag but neither of them renders it.
<Router>
<Route
path="/tienda"
exact
component={({ history }) => <Productos history={history} />}
/>
<Route
path="/carrito"
component={({ history }) => <Carrito history={history} />}
/>
</Router>
I can give any information if you need anything else
EDIT:
If I render <Carrito /> where <Productos /> is, it shows the component, so it could be a problem with the Route