Of course propane is a great way to cook also, but a bit more dangerous. One must have an LP solenoid value if using Propane for cooking and heating.
Every professionally installed Propane system in boats for the last 40 yrs has a solenoid at the tank end of the distribution line. Proper installation is the key, but that is so trivial and so effectively makes propane a safe fuel that there really is no debate at all about safety.
The really dangerous fuel for cooking is alcohol, as the flame is not easily seen. I have personally witnessed 2 boats burn to the WL from alcohol galley fires. I have not ever witnessed a propane fire on a boat. I do inspections for my YC and have found and had the owners correct a few poor installations, but have still not seen any propane fires, nor have I heard of any in the boating community I occupy.
Electrical, yes, I know of 2 boats burned up in my own YC from boat end shore power connections burning up. Used to have a display board of dozens of blackened Marinco connections.
So don't perpetuate the myth of Propane being dangerous. Be respectful, cautious and safe.