Passing className to components in React
In React, we are familiar with the concepts of a className on components. It's the way React adds the class attribute to an element.
It looks like this:
<div className="bg-red-200"></div>
However, what happens if we want to make our custom component...
h.daily-dev-tips.com2 min read