Skip to content

Hooks

useCallback

Memoize a callback function to avoid unnecessary re-renders.

useContext

Access shared context from parent components.

useEffect

Run side effects in response to state or prop changes.

useHost

Access the host custom element instance.

useLayoutEffect

Run side effects synchronously before the browser paints.

useMemo

Cache expensive computations between renders.

useProperty

Create reactive properties with optional attribute reflection.

useReducer

Manage complex state with a reducer function.

useRef

Store a mutable value that persists across renders.

useState

Add reactive state to your Web Component.