UNPKG

babel-plugin-r-sugar

Version:

A Babel plugin that adds Vue-style v-if directive support to React

10 lines (9 loc) 310 B
import type { NodePath } from '@babel/traverse'; import type { JSXElement } from '@babel/types'; declare const reactVIfPlugin: (babel: typeof import("@babel/core")) => { name: string; visitor: { JSXElement(path: NodePath<JSXElement>, state: any): void; }; }; export default reactVIfPlugin;