I used state variable added to re-render the useEffect upon adding an event. The data is added to db but the app crashes.
But when i remove the useEffect the data is added to db and and is getting logged in the console.
Some please help me with the code below. I've been stuck in this for two days.
I used state variable added to re-render the useEffect upon adding an event. The data is added to db but the app crashes. But when i remove the useEffect the data is added to db and and is getting logged in the console. Some please help me with the code below. I've been stuck in this for two days.