Baby sleep in rock n play

I’ve heard many different opinions on letting a baby nap in a rock n play. I personally allow my baby to nap in hers while keeping an eye on her. I’ve been told not to, just to only put her in there to calm her down. I just don’t see the harm in letting her nap in one 🤷🏼‍♀️