In my view, education is more effective if it is also entertaining. There's no particular reason why pedagogy can't take advantage of nearly ubiquitous computing hardware, other than the textbook and curriculum racket that publishers are running.
The mammalian instinct for play is essentially a learning mechanism. All it takes to educate is to structure a game such that the lessons being learned are useful in the real world. We run around in open gaming worlds collecting tokens for no greater purpose than to make numbers bigger; we can easily adapt that to collecting knowledge for the purpose of getting smarter.
Imagine if the crafting system of an open-world game used actual chemistry and metallurgy. Kids could be trading tips on textiles and steel so that they can make non-anachronistic weapons and uniforms before doing a boss raid on Napoleon's army. Imagine if making a battle rifle with better stats in the game required you to know how real rifles work. Imagine the sort of teamwork that could take place if everyone in the clan/guild were required to be logged on in the same room at a specific time every weekday. The teacher turns into the quest-giver, and the reward is leveling up your brain, and maybe in-game currency that can be used to buy avatar prestige items.
Each state could certainly afford to hire a few developers, to make educational games that poke the very same skinnerbox dopamine buttons that the purely entertainment games poke. Each state could hire some video artists to produce educational content. I may have retained more from professional programs like "Connections" or amateur videos like "History of Japan" than I ever kept from my textbooks.
It has always been a mistake to make school boring. School is boring now because a boring school is cheap (relatively speaking), and it still works just well enough to keep civilization from collapsing. The curriculum/textbook/lecture model was necessary when education was limited by labor, such that every N students require 1 teacher, but now instead of compartmentalizing education into fixed classrooms with one specific teacher and N specific students at a time, we can have 10000 of the best teachers teaching 10 million students at once, such that they can each learn and demonstrate mastery at their own pace. And this move by France is one step away from that.