loading...

Star ratings in Elm

dwayne profile image Dwayne Crooks ・1 min read

How do you build components or widgets or reusable views in Elm?

I've often wondered how to do it but never actually did it in Elm. However, last week I decided to take up the challenge and build a reusable rater for Elm.

I watched the API design session that Evan and Greg recorded a long time ago in 2016. It was an arduous but worthwhile task. Many nuggets of wisdom is littered throughout that video.

I reviewed the code for elm-sortable-table and line-charts.

And all that preparation got me ready to take on my small challenge.

Here's a demo of what I was able to achieve.

And, here's the code for it.

Your constructive feedback is more than welcomed.

Posted on Jun 24 '19 by:

dwayne profile

Dwayne Crooks

@dwayne

A full stack web developer who has an interest in programming language theory, interpreters, compilers and type theory. I enjoy programming with Elm and Haskell in my free time.

Discussion

markdown guide