Closed hapaxlife closed 10 months ago
Your island is submitting using the fetch API, so when the response comes back, you have to update state somewhere to update the DOM. (This is equivalent to what used to be called ajax). In this case you'd want your handler to return JSON or something rather than rendering.
If you remove the handleSubmit event handler, you'll see that the page reloads with the data you passed from your POST route handler.
That make sense for the refresh. Thx
The test project in Deploy and github in links below
funny-chicken-85.deno.dev
https://github.com/hapaxlife/Test_Post