mercredi 4 janvier 2017

Tint an image in ReactJS

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?




Aucun commentaire:

Enregistrer un commentaire