Advanced Toggles:

Refactoring

It’s getting messy in here. All of our shiny new toggle features are pretty awesome, but we’ve allowed our toggle component methods to get a little unruly in our excitement to create new functionality. In this lesson, we’ll spend some time refactoring the toggle component into something that’s much easier to look at. Most importantly, we’ll set ourselves up for success in future lessons as we continue to increase the complexity of our components.

Learn More

  1. Lesson Source Code
Lesson 18 of 34