Answers for "reach router path typescript error"

0

reach router path typescript error

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

type Props = { component: FunctionComponent } & RouteComponentProps;

const Route: FunctionComponent<Props> = ({ component: Component, ...rest }) => (
  <Component {...rest} />
);

export default Route;
Posted by: Guest on September-24-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language