5 months old has diarrhea:(

Mommy
Hello mommies....My 5 months old has diarrhea since 3 days. Is is okay to give her Pedialyte... i am worried that she will be dehydrated. Pls suggest