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.
Top comments (0)