问题
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?
来源:https://stackoverflow.com/questions/41473264/tint-an-image-in-reactjs