Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 05-Apr-2020 | - | ||||
src/ | H | 05-Apr-2020 | - | 3,702 | 2,668 | |
LICENSE | H A D | 05-Apr-2020 | 1.5 KiB | 31 | 24 | |
README.md | H A D | 05-Apr-2020 | 1.5 KiB | 22 | 12 | |
docs.json | H A D | 05-Apr-2020 | 29.6 KiB | 1 | 1 | |
elm.json | H A D | 05-Apr-2020 | 643 | 22 | 22 |
README.md
1# Elm in the Browser! 2 3This package allows you to create Elm programs that run in browsers. 4 5 6## Learning Path 7 8**I highly recommend working through [guide.elm-lang.org][guide] to learn how to use Elm.** It is built around a learning path that introduces concepts gradually. 9 10[guide]: https://guide.elm-lang.org/ 11 12You can see the outline of that learning path in the `Browser` module. It lets you create Elm programs with the following functions: 13 14 1. [`sandbox`](https://package.elm-lang.org/packages/elm/browser/latest/Browser#sandbox) — react to user input, like buttons and checkboxes 15 2. [`element`](https://package.elm-lang.org/packages/elm/browser/latest/Browser#element) — talk to the outside world, like HTTP and JS interop 16 3. [`document`](https://package.elm-lang.org/packages/elm/browser/latest/Browser#document) — control the `<title>` and `<body>` 17 4. [`application`](https://package.elm-lang.org/packages/elm/browser/latest/Browser#application) — create single-page apps 18 19This order works well because important concepts and techniques are introduced at each stage. If you jump ahead, it is like building a house by starting with the roof! So again, **work through [guide.elm-lang.org][guide] to see examples and really *understand* how Elm works!** 20 21This order also works well because it mirrors how most people introduce Elm at work. Start small. Try using Elm in a single element in an existing JavaScript project. If that goes well, try doing a bit more. Etc. 22