Skip to main content

Watch: Using className to Add Style

By Michael Chan

JavaScript

Share:

Free JavaScript Book!

Write powerful, clean and maintainable JavaScript.

RRP $11.95

Today is the epic conclusion of our Building a Stopwatch mini-series. We’ll use className to add nice clean styles to our component. As a bonus, we’ll remove duplication by creating a new Button component and using a special JSX feature called Spread Attributes. Enough jabber, let’s get styling!

This is the fourth and final video in the Building a Stopwatch in React series.

Loading the player…

Michael is obsessed with teaching. He designs at Planning Center Online, organizes Full Stack Talks in San Diego, and teaches React.js at SitePoint. He thinks his wife and two ridiculous kids are super great. Also ramen.

New books out now!

Learn how Git works, and how to use it to streamline your workflow!


Google, Netflix and ILM are Python users. Maybe you should too?