I used to think that too, and fuel cells are likely to become viable eventually .In my opinion for electric to be viable with current technology would require use of hydrogen fuel cells which should solve both the problems of range and "recharge times", and if you utilize photovoltaic surfaces and contain the "exhaust" you can use a second smaller cell to reverse the process and potentially extend your distance or allow you to "Recharge" in the sun in the event you have to stop at an airfield without hydrogen service. Capaciter banks can also be used to increase power for take off and climb and allow a smaller power cell for continuous power.
But they are not today's technology, especially from a homebuilt airplane perspective.
Hydrogen fuel cells are astronomically expensive, and hydrogen storage is VERY difficult.. either heavy tanks for compressed gas, or cryogenic liquid handling equipment minus 420 deg. F.
Hydrogen fuel cell powered planes have flown .. but only govt-funded demo projects.. extremely costly!
As it stands today, Lithium batteries are much cheaper, and likely to stay that way for a good long while.
Other types of fuel cells show promise.. methanol reformer, direct methanol, Aluminum-air, Lithium-Air etc.
But Lithium secondary batteries are still improving and seem likely to be the dominant e-plane power source for at least another decade .. the range limitations will not be solved anytime soon.