UNPKG

react-beautiful-dnd-next

Version:

Beautiful and accessible drag and drop for lists with React

16 lines (13 loc) 472 B
// @flow import invariant from 'tiny-invariant'; import isHtmlElement from './is-type-of-element/is-html-element'; export default function checkIsValidInnerRef(el: ?HTMLElement) { invariant( el && isHtmlElement(el), ` provided.innerRef has not been provided with a HTMLElement. You can find a guide on using the innerRef callback functions at: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/using-inner-ref.md `, ); }