jridgewell / babel-plugin-transform-incremental-dom

Turn JSX into IncrementalDOM
MIT License
145 stars 12 forks source link

Optimize "if-else" children #58

Closed jridgewell closed 8 years ago

jridgewell commented 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.

This optimizes them so they do not require a JSX wrapper.

Fixes #57.