Smartphones were just starting to be common right around the time I hit middle and high school. Teachers let us use them whenever we wanted, more or less, but if there was something we were supposed to be doing, we were only allowed to use them for educational purposes.
We were often encouraged to use them, in fact. If there was ever a question someone asked that the teachers couldn't answer, or they heard an argument between students about something that could be solved by looking up hard data, they would invite us to take out our phones and look it up. One of the teachers would occasionally make little websites and apps related to whatever we were learning at the time. Sometimes we were shown interesting blog posts, educational youtube videos (before it was an industry), personal sites from people who make things. It was reinforced again and again that they were for discovery first, creation second, and anything else third.
I feel very lucky for that to be how I learned to interact with them. The fact that we have magic machines that can answer any question in our pocket, that can take photos and connect us to people and teach us languages, yet we've corrupted them to the point that people are willingly giving them up and banning them from educational settings, is one of the greatest failings of modern society in my view. Or rather, an indication of even deeper and more troubling problems.