As brand new beings in the world, babies are constantly growing, learning, and changing. Their mood is always different, as one day everything seems to make them cry and the next, they can't stop smiling and cooing. At the very least, a baby's behavior can be confusing and complicated for parents. The science behind what goes on in a baby's brain and why they act the way they do, however, can help you understand their behavior a little more. Plus it's endlessly fascinating (and comforting, to be honest).
Because basic cognitive and general development are taking place in your baby's brain are at the early stages, a lot of how your baby reacts is simply instinctual. Their behavior can be seen as a reaction of their brains trying to learn and mature, too. And keep in mind that no two babies are going to progress at the exact same rate, so there's no need to go comparing your little one's behavior to that of your best friend's bundle of joy.
Once you have a better idea of what's actually going on in your babe's brain, it could help you be more accepting of the behavior that might've had you pulling your hair out before. And honestly, they'll grow out of this stage before you know it.