Kids dad here.
I try to make a distinction between consumption and creation activities. Consumption activities (social media, youtube, playing games, etc) are time limited. But we're much more relaxed for creation activities (coding, making music/art, etc).
This approach helps keep them safe from some of the negatives of the web, while letting them learn something valuable.