do people sleep with their babies ?

i wanted to know at how many months did you let your baby sleep with you ? i heard it’s dangerous.