Someone explain to me if solar panels on your house are worth having?

I keep getting companies canvasing my street selling solar energy. Seems like the state I live in has some sort of tax breaks and what not. Solar panels have been around long enough at this point but you still don’t see a lot of houses with them. I get strong sunlight on the roof pretty much all morning/day/evening. And live in a pretty small ranch. 1,100 square feet. I would like to just understand this better if it really is worth it or not.