Skip to content

Added ref prop

Compare
Choose a tag to compare
@grubersjoe grubersjoe released this 30 Aug 20:24
· 143 commits to main since this release

Added a ref prop to allow access to the calendar DOM node.

const Component = () => {
  const calendarRef = useRef<HTMLElement>(null);

  return <ActivityCalendar data={data} ref={calendarRef} />;
}