margaritahumanitarian / helpafamily

Documentation comments not found for functions and classes JS-D1001
Documentation
Minor
3 occurrences in this check
Documentation comment not found for arrow function getSiblingElement
47    [ref]
48  );
49
50  const getSiblingElement = (list, property) => {51    const sibling = list.length > 0 ? list[0][property] : null;
52    return sibling instanceof HTMLElement ? sibling : null;
53  };
Documentation comment not found for arrow function handleScroll
 7  useEffect(() => {
 8    const containerElement = ref.current;
 9
10    const handleScroll = () => {11      const rect = containerElement.getBoundingClientRect();
12      const visibleElements = Array.from(containerElement.children).filter((child) => {
13        const childRect = child.getBoundingClientRect();
Documentation comment not found for function declaration usePosition
 1import { useCallback, useEffect, useState } from 'react';
 2
 3export function usePosition(ref) { 4  const [prevElement, setPrevElement] = useState(null);
 5  const [nextElement, setNextElement] = useState(null);
 6