KyleJune / deno-tailwind-ui-react-example

An example of how you can use Tailwind UI and React with Deno
20 stars 5 forks source link

Add live reloading and use oak instead of serve #7

Closed KyleJune closed 2 years ago

KyleJune commented 2 years ago

Closes https://github.com/KyleJune/deno-tailwind-ui-react-example/issues/6

I've manually tested this on deploy and at the moment it does not behave as an SPA after initial load due to main.js not being served correctly via oak's response.send command. That's because response.send currently uses Deno.stat which is unavailable on Deno Deploy. Below is an issue on the oak repository tracking this issue.

https://github.com/oakserver/oak/issues/416

KyleJune commented 2 years ago

This PR also added some api endpoints that will be used soon for demonstrating react suspense.