React Utils
API reference for @udecode/react-utils.
@udecode/react-utils
contains utility functions for React.
Components
<PortalBody>
Renders a React component in the document.body
using a portal.
<Text>
Generic component for rendering a span.
<Box>
Generic component for rendering a div.
API
createPrimitiveComponent
Creates a primitive component factory which utilizes hooks for managing state, props, and forwards references to child components.
createPrimitiveElement
Creates a component from an element type.
createSlotComponent
Creates a Slot component, which is useful when you want a component to behave as its child.
withProviders
A function that wraps a component in multiple providers.