프로젝트
GitHub에서 보기
elm/html
소개
Use HTML in Elm!
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalHTML
Quickly render HTML in Elm.
Examples
The HTML part of an Elm program looks something like this:
import Html exposing (Html, button, div, text)
import Html.Events exposing (onClick)
type Msg = Increment | Decrement
view : Int -> Html Msg
view count =
div []
[ button [ onClick Decrement ] [ text "-" ]
, div [] [ text (String.fromInt count) ]
, button [ onClick Increment ] [ text "+" ]
]
If you call view 42 you get something like this:
<div>
<button>-</button>
<div>42</div>
<button>+</button>
</div>
This snippet comes from a complete example. You can play with it online here and read how it works here.
You can play with a bunch of other examples here.
Learn More
Definitely read through guide.elm-lang.org to understand how this all works! The section on The Elm Architecture is particularly helpful.
Implementation
This library is backed by elm/virtual-dom which handles the dirty details of rendering DOM nodes quickly. You can read some blog posts about it here:
관련 프로젝트 살펴보기
불러오는 중…