Found in 1 comment on Hacker News
My daughter is 3.5 years old. Great that you asked. Please don’t do that.

I can recommend this book series and in particular “Positive Discipline: The First Three Years”

https://www.amazon.com/dp/0804141185/

For anyone reading this, don’t get caught up by the “discipline” in the book title. The authors are against punishment.