Closed jridgewell closed 8 years ago
In JSX, since there’s not if-else statements, most people use condition ? <div /> : <other /> or condition && <div /> || <other /> to conditionally render children.
condition ? <div /> : <other />
condition && <div /> || <other />
This optimizes them so they do not require a JSX wrapper.
Fixes #57.
In JSX, since there’s not if-else statements, most people use
condition ? <div /> : <other />
orcondition && <div /> || <other />
to conditionally render children.This optimizes them so they do not require a JSX wrapper.
Fixes #57.