Nowadays , it is prepared by the reaction of fluorine with a dilute aqueous solution of sodium hydroxide . Sodium fluoride is left as a side-product : The modern preparation entails the reaction of fluorine with a dilute aqueous solution of sodium hydroxide , with sodium fluoride as a side-product :