routeContext.tsx 310 B

12345
  1. import {createContext} from 'react';
  2. import {RouteContextInterface} from 'react-router';
  3. // TODO(nisanthan): Better types. Context will be the `props` arg from the RouterProps render method. This is typed as `any` by react-router
  4. export const RouteContext = createContext<RouteContextInterface | null>(null);