babel-plugin-transform-v-jsx

0.0.2 • Public • Published

babel-plugin-transform-v-jsx

v:if

Make conditional render simple.

<button v:if={showButton} />
 
 
<button v:if />

v:class

Support object & array type className that just like Vue(need to impl React._extFixClassName).

<button v:class={{active: isActive}} />

v:wrap

Make use of HoC more simple.

<a v:wrap={<Tooltip title="abc" />}>i</a>

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i babel-plugin-transform-v-jsx

    Weekly Downloads

    0

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • kindy