Best pattern for "click here to submit your results to an API backend"

Hi Simon, the button documentation says that the reduce function is called whenever the button is clicked. I think it would work for your POST request to happen in that handler. It’s a bit confusing because that function also returns a “value” for the button, which isn’t needed here.

1 Like