Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
React: CSS in JS - React France Meetup
Search
vjeux
December 15, 2014
33
11k
React: CSS in JS - React France Meetup
vjeux
December 15, 2014
Tweet
Share
More Decks by vjeux
See All by vjeux
React Rally: Animated -- React Performance Toolbox
vjeux
83
90k
React: CSS in JS
vjeux
656
1.5M
OSCON - React Architecture
vjeux
111
45k
Why does React scale? - JSConf 2014
vjeux
52
2M
Image Layout Algorithms - HTML5 Dev Conf
vjeux
13
860k
React Presentation
vjeux
7
12k
Image Layout Algorithms
vjeux
5
770
Generic Image Processing With Climb – 5th ELS
vjeux
1
5.6k
Climb - A Generic and Dynamic Approach to Image Processing
vjeux
1
3.2k
Featured
See All Featured
Raft: Consensus for Rubyists
vanstee
137
7k
Optimizing for Happiness
mojombo
378
70k
Statistics for Hackers
jakevdp
799
220k
Mobile First: as difficult as doing things right
swwweet
223
9.6k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
470
Building an army of robots
kneath
306
45k
Product Roadmaps are Hard
iamctodd
PRO
53
11k
Unsuck your backbone
ammeep
671
58k
Why You Should Never Use an ORM
jnunemaker
PRO
56
9.4k
The Straight Up "How To Draw Better" Workshop
denniskardys
233
140k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Transcript
React: CSS in JS Christopher “vjeux” Chedeau
1. Global Namespace 2. Dependencies 3. Dead Code Elimination 4.
Minification 5. Sharing Constants 6. Non-deterministic Resolution 7. Isolation Problems with CSS at Scale 1. Global Namespace 2. Dependencies 3. Dead Code Elimination 4. Minification 5. Sharing Constants 6. Non-deterministic Resolution 7. Isolation
speakerdeck.com/vjeux/react-css-in-js
Let’s build a button
Let’s build a button
Differences
Inline Styles!!1!
Conditionals
Conditionals
Customization
Customization
Customization
Visibility
Visibility
::after
::after
:hover
:hover
Media Queries
Media Queries
Media Queries
Conclusion Christopher “vjeux” Chedeau