Its not against the law in France: https://skeptics.stackexchange.com/questions/55977/did-franc...
I'm not really sure it matters if wifi is not allowed in schools as cellphones are so prevalent now so you aren't stopping anyone from accessing the internet if they really want to.
My kids' school in rural Midwest US has been giving every kid an ipad and providing wifi on the bus since ~2014. They had classroom WiFi in early 2000s at the latest.