Tint an image in ReactJS

1.4k views Asked by At

I have a bunch of icons where on each icon, the background is transparent and the icon itself is filled in white. I would like to tint the color of these icons somehow in ReactJS. The colors will be pulled from this.state.color which in my scenario, is a color that a user can choose from the front end. For example, if I choose the color red, the icon will turn red while the background remains transparent. Is this possible in ReactJS without using a plugin?

0

There are 0 answers