Handling Props with the Same Property Name

In this lesson, we'll see how two prop properties with the same name can be invoked at once.

We allowed passing custom props into the getToggler props getter. Now, what if the user wanted to pass in a custom onClick prop?

Here’s what I mean:

Get hands-on with 1200+ tech skills courses.