The processes by which infants and young children develop their ability to interact with others and regulate their emotions.