No problem, just pop a new battery in and you can be back in the race in about an hour and a half.
Just FYI ... they already race electric cars in the Formula ‘E’. They solve the recharge issue by allowing each team to have two identical cars ready to race, fully charged up obviously. Then the race distance is set to force each team to make the driver switch from their first car to the second.
While the cars look much like ICE race cars they are much lighter and consequently more fragile. Just about any contact with another car or an obstruction is likely to be a race ending event for that team.
The competition is generally pretty good and the cars are not slow.