React functions not working with button clicks

Question:
I have a react page with node.js for server side. My issue is that when I click the button on my react page, nothing happens. The page loads data from the replit database, and when the button clicked, the app should show an alert containing the data. Is this a bug with my code or in replit itself? Any help is appreciated!

Repl link:
https://replit.com/@SevenT33N/contact-form-again?v=1#index.js

Can’t see anything wrong with this, try moving the button into its own function and testing that only.

Sadly, I tried that already. I do think it’s worth noting that I used the “Server-side React” template. Do you think its something with the repl’s configuration that is causing the issue?

Probably, as it isn’t an official template by Replit.