Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jsx-jstl-conditionals

squidsquidson9ISC1.0.5

jstl logical tags for jsx

jstl, when, if, otherwise, choose

readme

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.