I’ve never been hit, and as far as I know none of my peers were ever hit in school. Always assumed it was illegal. As in assault and battery.
Legal when I was a kid.............60 years ago when I was this kid’s age. I only got smacked a couple of times.............