importReactfrom'react';import{IF,ELSE,SWITCH,CASE}from'jsx-plus';classComponentextendsReact.Component{render(){letvalue=2;return(<div><IFtest={value>0}>
value is greater than 0
<ELSE/>
value is equal or lesser than 0
</IF><SWITCHmatch={value}><CASEtest={0}>value is equal 0</CASE><CASEtest={1}>value is equal 1</CASE><CASEtest={2}>value is equal 2</CASE>{/* other children components without CASE is default */}
unknown value
</SWITCH></div>);}}