React Components Lab Refactor To Create Sub-Components
React components can almost always be broken down into even smaller, more modular ones!
Try creating the following additional components:
WeatherIcon- contains only the<img>WeatherData- contains both the day, conditions, and time
This version would have the following component tree:
