This is an excerpt of my course, Reusable Components, which will be released on November 3!
In Module 3 of Reusable Components we cover the second level of reusability, Configuration.
Configuration is all about using props to allow for variations in how a component works (you're likely doing some form of this already). For example, instead of writing an entirely new component for each type of button, you can add in a type
prop that allows you to switch between the different styles.
In this video we also go over configuration props and state props, and how they're different.
Most Popular
The 6 Levels of Reusability
June 2020
We all want to write less code, but get more done. To make this happen, we build our components so they can be reused more than just once.
The Underdog Framework
January 2020
If React is so much more popular than Vue, wouldn't it be better to just stick with that? There are 3 specific things here I'd like to cover: 1. Growth of the framework itself (innovation) 2. Career opportunities 3. Ease of learning/getting better
The Most Important Feature in Vue
November 2019
I've said it before and I'll say it again: Computed properties are the most important feature in Vue. Sure, scoped slots let you create some nice abstractions and watchers are useful too. But I don't think anything comes close to how valuable computed props are.