Minimal Custom Element Ellie

This is very simple, but I spent a while looking for it before making my own. Here is a simple ellie that has all of the logic needed to make a Custom Element: https://ellie-app.com/hk5Mr29zxhza1

It’s helpful for me as I prototype things, and I hope it helps others too!

13 Likes

Nice!

Maybe there are other examples here: https://janiczek-ellies.builtwithdark.com/

6 Likes

It looks like there are several good examples there - Thanks @lucamug!

Is the following line really needed? (in @asteroidb612 as well as @Janiczek custom element examples)

constructor() { super(); }

I think so, but can’t confirm 100%; I’ve seen it in several examples, including the official elm guide’s: Custom Elements · An Introduction to Elm

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.