vigour-io / builder-boy

👲🏽 Build and watch es modules FAST 👲🏽
6 stars 1 forks source link

jsx bug for non-state driven conditions #59

Open jimdebeer opened 7 years ago

jimdebeer commented 7 years ago
const Message = s => {
  typeof window === 'undefined' ? null
  : <div style={{
    display: {
      $: 'tmpDeviceMenu',
      $transform: val => val ? 'block' : 'none'
    },
    position: 'fixed',
    top: webview === 'ploy-native' ? '75px' : '60px',
    right: 0,
    zIndex: 1000
  }}>
    <CastDevices />
    <Devices />
  </div> }
jimdebeer commented 7 years ago

think of a good way for this