UNPKG

framer-motion

Version:

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

9 lines (6 loc) • 267 B
import { createContext, useContext } from "react" import { VisualElement } from "../../render/types" export const MotionContext = createContext<VisualElement | undefined>(undefined) export function useVisualElementContext() { return useContext(MotionContext) }