UNPKG

@mui/base

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

12 lines (11 loc) 231 B
'use client'; import * as React from 'react'; /** * @ignore - internal hook. */ export function useForcedRerendering() { const [, setState] = React.useState({}); return React.useCallback(() => { setState({}); }, []); }