Kylian Mbappe scored both goals for France to propel them to the round of 16, making them the first team to do so this year.
Olivier Giroud, Adrien Rabiot and Jules Kounde all tried to break the deadlock but Kasper Schmeichel and his able defense was alert to the threat.
On the other end, Cornelius had his shot whiz to the side of the near post before Kylian Mbappe forced Schmeichel to make a smart save.
The deadlock was broken when Theo Hernandez cut back a pass for Kylian Mbappe to fire past Schmeichel, leaving the goalkeeper side footed.
Seven minutes later, a corner kick from Eriksen was headed towards the path of Christensen by Andersen to give Denmark a much craved for equalizer.
Both teams tried to take the lead later on with Rabiot shooting his acrobatic over the bar and Braithwite hitting the French side netting with his own attempt.
Mbappe got the winner in the 86th minute as he headed in an inviting cross from Antoine Greizman.