CSS in JavaScript: With styled-components and React

CSS in JavaScript: With styled-components and React

English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 2h 42m | 2.24 GB

Bring your style to the component age, just like JavaScript! Components are the fundamental building block of a modern application, and with CSS in JS we can finally bring our style to the component age. CSS in JavaScript: With styled-components and React is a video course that unites the best parts of ES2015, React, and of course, CSS to bring real benefits to your styling solution!

Web development has changed. CSS was originally designed for styling documents, with the web as a mere document reader. We’ve now re-purposed the web with components at the core. CSS just wasn’t built with component-based development in mind, but there’s a solution! Combining the best parts of CSS, components, and JavaScript together, CSS in JS unifies these two separate methodologies, letting you write your CSS directly in your JavaScript files. That means you can have your CSS interact directly on the component level.

More importantly, you get to enjoy a whole host of benefits like cleaner code, more intuitive styles, automatic vendor prefixing, and much more. With this approach, you get to continue to write the real CSS, not inline styles, but in a way that’s suited for modern applications!

CSS in JavaScript: With styled-components and React introduces you to developing modern applications that include CSS written directly in your JavaScript files, rather than as separate stylesheets. Taking on something this new can be daunting, but expert instructor Dustin Schau brings his wealth of experience on CSS in JS with lessons that will let you digest what you learn easily. After starting with a brief introduction to CSS in JS and what it actually means, you’ll quickly start using React and the library styled-components to build your first styled component. You’ll see how to inject props, grapple with inheritance, and get to grips with all sorts of pseudo styles, media queries, and cool animations.

Then, with real-world exercises you can bring to your own work, you’ll focus on extending your creations with advanced features like server-side rendering, theming support, and even a brief segue into CSS modules and automated tooling. Top everything off with a look at when not to use CSS in JS, and you’ll be ready to use the skills and techniques you’ve picked up right away!

Table of Contents

01 Introduction
02 What CSS in JS is
03 What CSS in JS is not
04 Set up
05 Your first styled component
06 Traditional CSS
07 Injecting props
08 Inheritance and composition
09 Animation
10 Usage with existing libraries
11 Injecting globals
12 Theming
13 Server and static rendering
14 Utilities
15 Style objects
16 When not to use CSS in JS
17 CSS modules
18 Automated tooling
19 Alternative libraries
20 Libraries outside React
21 Drawbacks
22 Next steps and wrap-up