UNPKG

@winglet/react-utils

Version:

React utility library providing custom hooks, higher-order components (HOCs), and utility functions to enhance React application development with improved reusability and functionality

11 lines (8 loc) 283 B
import { jsx } from 'react/jsx-runtime'; import { memo } from 'react'; import { usePortalAnchorRef } from './context/usePortalContext.mjs'; const Anchor = memo((props) => { const ref = usePortalAnchorRef(); return jsx("div", { ...props, ref: ref }); }); export { Anchor };