Home > Blockchain >  How to display a specific component icon based off of props data using a switch case?
How to display a specific component icon based off of props data using a switch case?

Time:05-03

I am very new to React and am self-taught. I am creating a basic app that uses weatherapi.com to display the current moon phase and information. This API only gives you the name of the moon phase but not the icon. So my plan was to import icons from enter image description here

enter image description here

  • Related