$reactFrom

Below is the documentation for the $reactFrom function:

$reactFrom(from, to)
  const relativePosition = $reactFrom(parentElement, childElement);
  const parent = document.querySelector('.parent-element');
  const child = document.querySelector('.child-element');
  const relativePosition = $reactFrom(parent, child);
  console.log('Relative position:', relativePosition);