Why is sending a purchase POST request inside useEffect usually a bad idea?
Effects cannot perform network requests
The purchase should happen because of a user interaction, not because the component rendered
React blocks POST requests inside Effects in Strict Mode
Event handlers cannot call asynchronous code
This is a premium drill. Continue on to the next free drill in the sequence.