UNPKG

react-docgen

Version:

A library to extract information from React components for documentation generation.

6 lines (5 loc) 213 B
import type { NodePath } from '@babel/traverse'; /** * Returns true if the expression is a reference to a react export. */ export default function isReactBuiltinReference(path: NodePath, name: string): boolean;