One of the best things you can do is model the right behavior. So if you get frustrated and your child sees you keeping your cool and handling it well, they'll latch on to that behavior. If you throw a fit or start losing it, your child will emulate that. Another thing to keep in mind is that you need to ignore the behavior if your child acts out when they're frustrated. If they throw a fit and you go in to help them, they'll learn that this a good way to get your attention.