ReferenceUtils
renderElement
Utility for rendering UI component elements with state-driven props and render prop support
Import
renderElement renders a UI component element, handling default tag rendering, render props (element or function), props merging, ref composition, and state-driven className/style.
The className and style component props accept either static values or functions that receive the current state:
The render prop lets consumers fully customize the rendered element while preserving all internal props and refs: