UNPKG

framer-motion

Version:

An open source and production-ready motion library for React on the web

9 lines (7 loc) • 183 B
import { FeatureProps } from "../features/types" export const makeRenderlessComponent = <P = FeatureProps>(hook: Function) => ( props: P ) => { hook(props) return null }