reach router path typescript error

The solution for “reach router path typescript error” can be found here. The following code will assist you in solving the problem.

import React, { FunctionComponent } from “react”;
import { RouteComponentProps } from “@reach/router”;

type Props = { component: FunctionComponent } & RouteComponentProps;

const Route: FunctionComponent = ({ component: Component, …rest }) => (


export default Route;

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

inline scripts encapsulated in