UNPKG

react-kiwi-dropdown

Version:

A minimal, easy-to-use and highly adjustable dropdown component made with ReactJS.

25 lines (22 loc) 420 B
/** * @flow */ import JSXAttributeMock from './JSXAttributeMock'; export default function JSXElementMock( tagName: string, attributes: Array<JSXAttributeMock> = [], children: Array<Node> = [], ) { return { type: 'JSXElement', openingElement: { type: 'JSXOpeningElement', name: { type: 'JSXIdentifier', name: tagName, }, attributes, }, children, }; }