MCPcopy
hub / github.com/react-bootstrap/react-bootstrap / normalize

Function normalize

src/TransitionWrapper.tsx:47–51  ·  view source on GitHub ↗
(callback?: (node: HTMLElement, param: any) => void)

Source from the content-addressed store, hash-verified

45
46 const normalize =
47 (callback?: (node: HTMLElement, param: any) => void) => (param: any) => {
48 if (callback && nodeRef.current) {
49 callback(nodeRef.current, param);
50 }
51 };
52
53 const handleEnter = useCallback(normalize(onEnter), [onEnter]);
54 const handleEntering = useCallback(normalize(onEntering), [onEntering]);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…