One thing that many years of parenting have taught me is that children usually want to please you. They want to be well behaved, and when they aren’t, there is usually more to it than we see at first glance.
Try not to make hasty assumptions about their behavior and motivations. Of course, continue to correct and train. But taking a step back before reacting can provide the space to understand and problem solve.
First assume they are hungry, tired, frustrated about something they don’t know how to express, or simply too young to have the impulse control you wish they had.
I feel terrible when I look back on the times I most completely lost my cool when my older children were young only to have them start running a fever or throwing up a short while later.