Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
React: CSS in JS - React France Meetup
vjeux
December 15, 2014
33
8.3k
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
88k
React: CSS in JS
vjeux
654
1.5M
OSCON - React Architecture
vjeux
111
43k
Why does React scale? - JSConf 2014
vjeux
52
2M
Image Layout Algorithms - HTML5 Dev Conf
vjeux
12
860k
React Presentation
vjeux
7
8.7k
Image Layout Algorithms
vjeux
5
680
Generic Image Processing With Climb – 5th ELS
vjeux
1
5k
Climb - A Generic and Dynamic Approach to Image Processing
vjeux
1
2.6k
Featured
See All Featured
Large-scale JavaScript Application Architecture
addyosmani
499
110k
Side Projects
sachag
449
37k
GraphQLの誤解/rethinking-graphql
sonatard
24
6.2k
Automating Front-end Workflow
addyosmani
1351
200k
StorybookのUI Testing Handbookを読んだ
zakiyama
4
2k
Fantastic passwords and where to find them - at NoRuKo
philnash
25
1.5k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
29
4.3k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
237
19k
Designing for Performance
lara
596
63k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
349
27k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
103
16k
Designing Experiences People Love
moore
130
22k
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