Melatonin for kids

How do you guys feel about giving kids melatonin gummies to sleep? For kids who struggle with sleep? It was suggested for my kids my one of their teachers at school and I’m not sure how I feel about it. My boys are 5&2.