Version: v4.4.0
use-mutation-observer
#
AboutMutation Observer hook for React.
#
Installation#
Importing the hook#
Usage#
ArgumentsArgument | Type | Description | Default value |
---|---|---|---|
ref | React ref | Ref which should be observed for Mutations | undefined |
callback | function | Function which should be invoked on mutation. It is called with the mutationList and observer | undefined |
config | object | Mutation Observer configuration | {attributes: true,,characterData: true,,subtree: true,,childList: true} |
#
Join Bhargav's discord serverYou can click on the floating discord icon at the bottom right of the screen and talk to us in our server.