Sha256: 318f3b4eb3c22b1e1c4cb4f21d70d5fd0d42d831fc015ed5f22b295ba5ea2d7e
Contents?: true
Size: 413 Bytes
Versions: 48
Compression:
Stored size: 413 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.init({ node: target }) })
Version data entries
48 entries across 48 versions & 4 rubygems