Sha256: 8ddf34872639640bbfbe2ceb2588b92d9814a2ba40bc756eafdbd75c6a06aee7

Contents?: true

Size: 392 Bytes

Versions: 21

Compression:

Stored size: 392 Bytes

Contents

// Run this example by adding <%= javascript_pack_tag "hello_elm" %> to the
// head of your layout file, like app/views/layouts/application.html.erb.
// It will render "Hello Elm!" within the page.

import Elm from '../Main'

document.addEventListener('DOMContentLoaded', () => {
  const target = document.createElement('div')

  document.body.appendChild(target)
  Elm.Main.embed(target)
})

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
webpacker-jets-3.2.101 lib/install/examples/elm/hello_elm.js
webpacker-jets-3.2.100 lib/install/examples/elm/hello_elm.js
webpacker-4.0.0.pre.3 lib/install/examples/elm/hello_elm.js
webpacker-3.5.5 lib/install/examples/elm/hello_elm.js
webpacker-3.5.3 lib/install/examples/elm/hello_elm.js
webpacker-3.5.2 lib/install/examples/elm/hello_elm.js
webpacker-3.5.1 lib/install/examples/elm/hello_elm.js
webpacker-3.5.0 lib/install/examples/elm/hello_elm.js
webpacker-3.4.3 lib/install/examples/elm/hello_elm.js
webpacker-4.0.0.pre.pre.2 lib/install/examples/elm/hello_elm.js
webpacker-4.0.0.pre.pre.1 lib/install/examples/elm/hello_elm.js
webpacker-3.4.1 lib/install/examples/elm/hello_elm.js
webpacker-3.4.0 lib/install/examples/elm/hello_elm.js
webpacker-3.3.1 lib/install/examples/elm/hello_elm.js
webpacker-3.3.0 lib/install/examples/elm/hello_elm.js
webpacker-3.2.2 lib/install/examples/elm/hello_elm.js
webpacker-3.2.1 lib/install/examples/elm/hello_elm.js
webpacker-3.2.0 lib/install/examples/elm/hello_elm.js
webpacker-3.1.1 lib/install/examples/elm/hello_elm.js
webpacker-3.1.0 lib/install/examples/elm/hello_elm.js