Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Examples

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.

Getting Started

To run an example:

  1. Clone the Luath repo locally:

    git clone git://github.com/cmorten/luath.git --depth 1
    cd luath
  2. Install the Luath CLI:

    deno install -fqA --unstable --no-check https://deno.land/x/luath@0.9.1/luath.ts
  3. Then run the desired example by navigating to the directory and running the appropriate Luath serve command. E.g.

    cd examples/react
    luath serve

    The command required for each example is in the examples' README.

  4. Open http://0.0.0.0:4505 in a browser.

  5. Start editing the example files and keep and an eye on the browser.