Thank you for your query,
This present episode is looking like a viral gastroenteritis
Maintain her hydration by giving oral rehydration solutions sips by sips.
If she continues to have stomach ache after the loose motions stopped, I advise you to do basic investigations like CUE, ultrasound
abdomen after consulting your Pediatrician
Hope I have answered your query.