The wildfires in California have killed at least 40 people and destroyed at least 5,700 homes.