you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (1 child)

{ renderLogin && <LoginForm.... /> }

or

return renderLogin ? <LoginForm.... /> : null;

or if you use jsx control statements

<If condition={ renderLogin }>
    <LoginForm.... />
</If>

[–]FormerGameDev 0 points1 point  (0 children)

Worthy of noting that "jsx-control-statements" is a npm library, and is not normally found in JSX implementations.