react-display-switch
Declarative React Components for improving readability by eliminating { }, && and ternary operators out of JSX
Usage
When
<When screen_xs>contents for small screen</When>
or
<When screen_md or screen_lg>contents for medium or large screen</When>
and
<When admin_user and enable_google_analytics> <a href='./google-analytics-settings'>google analytics settings</a></When>
register conditions
WhenWhenWhenWhenWhen
WhenNot
<WhenNot login_user><a href='/login'>please login</a></WhenNot>
Sample
see ./sample