My component looks something like this: (It has more functionality as well as columns, but I have not included that to make the example simpler)
const Weather