// @flow strict type RefHandler = (?HTMLElement) => void; type RefObject = { current?: ?HTMLElement}; export type Ref = RefHandler | RefObject;