Skip to main content

rootMounted

Executes a callback function when RateParity's root element is mounted to the DOM.

Example

rpt({
type: "event",
command: "rootMounted",
payload: ({ rootRef }) => {
console.log(rootRef);
},
});

Payload

A function to be executed when RateParity's root element is mounted

Callback parameters

The callback function is passed an object as parameter

Object propertyTypeDescription
rootRefelementA reference to the root element