| Name | Description |
|---|---|
| react | A React example using the Luath plugin for React Fast Refresh. |
| react-importmap | A React example using the Luath plugin for React Fast Refresh, and the Rollup importmap plugin. |
| vanilla | A no-framework "vanilla" example demonstrating CSS, JSON and image imports with HMR. |
To run an example:
-
Clone the Luath repo locally:
git clone git://github.com/cmorten/luath.git --depth 1 cd luath -
Install the Luath CLI:
deno install -fqA --unstable --no-check https://deno.land/x/luath@0.9.1/luath.ts
-
Then run the desired example by navigating to the directory and running the appropriate Luath
servecommand. E.g.cd examples/react luath serveThe command required for each example is in the examples' README.
-
Open http://0.0.0.0:4505 in a browser.
-
Start editing the example files and keep and an eye on the browser.