securityos/node_modules/framer-motion/dist/es/projection/use-reset-projection.mjs

15 lines
355 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
import * as React from 'react';
import { rootProjectionNode } from './node/HTMLProjectionNode.mjs';
function useResetProjection() {
const reset = React.useCallback(() => {
const root = rootProjectionNode.current;
if (!root)
return;
root.resetTree();
}, []);
return reset;
}
export { useResetProjection };