Simple boilerplate to develop widgets or components with Elm using web components.
For developing standalone widgets or components in Elm. They will have their own state and runtime so you can use them multiple times.
Whats included?
Because writing declarative, purely functional web apps is fun!
Because no one wants to write CSS!
Because it just works right out-of-the-box.
Import the script and use the custom component.
<!DOCTYPE html>
<head>
<!-- ... -->
<script src="widget-path/index.js"></script>
<!-- ... -->
</head>
<body>
<!-- ... -->
<elm-counter />
<elm-counter />
<!-- ... -->
</body>
- Add component interop via flags and ports (advanced use)