mirror of
https://github.com/ryan-haskell/elm-spa.git
synced 2024-11-22 11:31:58 +03:00
single page apps made easy
cli | ||
example | ||
src | ||
.gitignore | ||
docs.json | ||
elm.json | ||
LICENSE | ||
README.md |
elm-spa
single page apps made easy
try it out
npx elm-spa init new-project
or just install the elm package
elm install ryannhg/elm-spa
or run the example
cd example && npm start
overview
When you create an app with the elm/browser package, you can build anything from a static Html msg
page to a fully-fledged web Browser.application
.
elm-spa
uses that design at the page-level, so you can quickly add new pages to your Elm application!
the four kinds of pages:
- static – a page that only renders HTML.
- sandbox – a page with state.
- element – a page with side-effects.
- component – a page with global state.
Check out the package docs to learn more!