The terminal is showing error "hooks are not used according to rules", please help
import React,{useState,useEffect} from 'react' import emailjs from 'emailjs-com'; export const Feedback = () => { const [feedback,setFeedBack] = useState(''); const [submitted,setSubmitted] = useState(false); const[email,setEmail] = useState(false); useEffect(() => { emailjs.init('hk264603@gmail.com') }, []); const handleSubmit = (e) => { e.preventDefault(); const templateParams ={ feedback:feedback, to_email:'swarnavo.pramanik8697@gmail.com', }; emailjs .send('service_c8wox7q', 'template_y4ulw9o', templateParams) .then((response) => { console.log('Feedback sent!', response.status, response.text); setSubmitted(true); setFeedBack(''); setEmail(true) }) .catch((error) => { console.error('Error sending feedback:', error); }); }; return ( <div> <form onSubmit={handleSubmit}> <textarea placeholder="enter your feedback"