mirror of
https://github.com/ryannhg/elm-spa.git
synced 2024-11-25 06:22:52 +03:00
875 B
875 B
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!