css in js
play

CSS-in-JS The good or the evil? Andrey Okonetchnikov - PowerPoint PPT Presentation

CSS-in-JS The good or the evil? Andrey Okonetchnikov @okonetchnikov ColorSnapper http://colorsnapper.com Past Current time Future A brief history of CSS CSS was designed for documents How many of you have ever re-designed a web-site


  1. but still very easy to use API import {styled} from 'styletron - react'; const Panel = styled('div', (props) �=? ({ backgroundColor: props.alert ? 'orange' : 'lightblue', fontSize: '12px' })); <Panel alert>Danger! �<0 Panel>

  2. airbnb.com CSS output size

Recommend


More recommend