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>

Readme

Keywords

none

Package Sidebar

Install

npm i babel-plugin-transform-v-jsx

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • kindy