Digital technology has its place, but in its present form, it's too easy to get distracted. My nephews would probably spend 10x as much time looking up youtube videos and playing pay-to-win apps than they would googling things if they had access to their phones in class.
I agree that in general the drive to "put a computer in every classroom" is absolutely moronic; in general, I think teachers don't adequately understand which technology is useful and cost-effective and which is not, and especially for teaching administrators, "technology" is just some nebulous black-box codeword for "expensive equipment." However, there is value in teaching children how to use technology effectively. For example, very few people know how to properly craft a google search, or how to discern a reliable source from a poor one. A lot of people, and especially children, can't even tell the difference between sponsored content and regular content. These are very important to teach children and I think this should be done in a scholastic context, as few parents would even have the skills to teach this. The problem is teaching kids these skills without distracting them - the secondary problem is that they're probably not learning from people who are very knowledgable themselves.
I think the ideal solution is some kind of locked-down, school-only (as in, it must physically stay within the school) tablet or laptop. It's probably counter-productive to spend too much time teaching children to write/read from physical media when >95% of a child's exposure to media from now to the foreseeable future will be digital. Ironically maybe our best bet is a "digital typewriter"