I have 1200w of solar panels hooked directly to the lower element of my hot water heater. I sized the element to match the source impedance of the panels in full sun. If you use a MPPT system you could get 50% more power in partial shade but panels were so cheap it was not worth the complexity. The top heating element is still on city power as backup but I rarely use it.
The water will get up to 80c on a sunny day, so it can store enough heat to last a couple days without sun. There is a mixing valve so the water coming out of the tank is mixed with cold to stay below 50C for safety.