UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

11 lines 445 B
import { ReactNode } from 'react'; import { useBlocker } from 'react-router'; /** * Component wrapper for react-router `useBlocker` hook where the blocker is passed as a render prop. Use the hook when possible. * @constructor */ export default function Blocker(props: { shouldBlock: Parameters<typeof useBlocker>[0]; children: (blocker: ReturnType<typeof useBlocker>) => ReactNode; }): ReactNode; //# sourceMappingURL=Blocker.d.ts.map