Little advice pls

Anyone know how to navigate your child when they get frustrated when they don’t understand something? My daughter gives up when she doesn’t understand a game or a lesson being taught. I don’t want to discourage her or make her feel bad in any way. Just want to help her to want to learn and try again even if she fails.

She is 3 and a half, going to go school in September.