The French president was among the first international leaders to react, even before the results were officially announced.