Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

jsx-jstl-conditionals

1.0.5 • Public • Published

A small babel plugin package designed to make transitioning from jstl to jsx simpler.

<ForEach var='thisItem' items={items} index='index'>
    {thisItem}
</ForEach>
 
<If test={condition}>
    contents
</If>
 
<Choose>
    <When test={condition}>
        if
    </When>
    <Otherwise>
        else
    </Otherwise>
</Choose>

Pretty much a clone of jsx-control-statements but more customized for my experiences.

Install

npm i jsx-jstl-conditionals

DownloadsWeekly Downloads

14

Version

1.0.5

License

ISC

Unpacked Size

14.4 kB

Total Files

9

Last publish

Collaborators

  • avatar