Learnings from 1996 - 2013 Language for writing styles - CSS Separation of content and styles in DOM Semantic HTML = Good names for elements Isolation Components Co-location
Language for writing styles - CSS Separation of content and styles Semantic HTML = Good names for elements Isolation Components Co-location No :hover :focus! 1. The React documentation way - Inline Styles
1. The React documentation way - Inline Styles Language for writing styles - CSS Separation of content and styles Semantic HTML = Good names for elements Isolation Components Co-location Advanced logic
Content (HTML), styling (CSS) and interactions (JS) in one file. If you’re using React, you have access to a more powerful construct than CSS class names, you have components - Micheal Chan, @chantastic What’s so great about co-location anyways?
Content (HTML), styling (CSS) and interactions (JS) in one file. - Convenience - Independent entity - Include a component and everything just works™ - Share + reuse components across pages and applications What’s so great about co-location anyways?
Language for writing styles - CSS Separation of content and styles Isolation Co-location Advanced logic Enforces container/presentation pattern 7. styled-components
Real CSS Conventions over configuration (styled-components, zeit/next) Simple API - css constructor - attaches styles to highest element in render() Future/Feature request