margaritahumanitarian / helpafamily

Either all code paths should have explicit returns, or none of them JS-0045
Anti-pattern
Minor
3 years ago3 years old
Arrow function expected no return value
47      { ...options }
48    ));
49    ob.observe(element);
50    return () => {51      cleanOb();52    };53  }, [element, options]);
54
55  // return { isIntersecting };