You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
644 B
644 B
title |
---|
useEffectEvent |
This API is experimental and is not available in a stable version of React yet.
You can try it by upgrading React packages to the most recent experimental version:
react@experimental
react-dom@experimental
eslint-plugin-react-hooks@experimental
Experimental versions of React may contain bugs. Don't use them in production.
useEffectEvent
is a React Hook that lets you extract non-reactive logic into an Effect Event.
const onSomething = useEffectEvent(callback)