Mirroring and Extending the Properties of an HTML Element

Learn how to enhance the component development by mirroring and extending the HTML element’s properties.

Creating the Button component

Let’s start with the first example. We want to create a button that comes with the appropriate styling for use in our application. In JavaScript, we might be able to do something like this:

Get hands-on with 1400+ tech skills courses.