Table of Contents generated with DocToc

<else>

The <else> structural component is used immediately after an <if>, an <elseif>, or an <unless>. When it comes after an <if>, it renders the JSX that it contains if the condition on the <if> is false, otherwise it renders nothing.

Here's an example with <if><else>:

export default <g>
  The condition is
    <if condition={ true }>
        truthy.
    </if>
    <else>
        falsy.
    </else>
</g>;

And here's an example with <unless><else>:

export default <g>
  The condition is
    <unless condition={ true }>
        falsy.
    </unless>
    <else>
        truthy.
    </else>
</g>;

results matching ""

    No results matching ""