Elmish logo

My tips for working with Elmish


  • Issue immediately a new Message
  • Make an HTTP call and then return the result in your application via a Message
  • Save data in your storage

Basic usage

Modelize your Model according to your needs

Everything is a function

Pass data as an argument

Pass a record as an argument

Use helper function to work with your Domain

Make public bare minimum

Make the child communicate with the parent

Schedule a parent message in a child component

  • bounce which is working withCmd<Debouncer.Msg>
  • update which is working with Cmd<Parent.Msg>

Use several views for the same component

Extends the Elmish API


Program composition

Custom commands

Refine your user experience

  • Program composition to register the library logic and views
  • Custom commands in order to send a notification to the program directly
  • F# feature to provide a Toast builder interface using pipes





Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The influence of education on developers

Docker/Container Introduction

Pet peeves with Podcast players! (& JTBD for podcasts)

How to save tons of money with AWS

Hi there hows it going? via /r/funny…

ERROR: (gcloud.builds.submit) HTTPError 404: The requested project was not found.

3d Game Programming with Java and libGDX — Overview of articles

Our Award Winning John Lewis Digital Platform

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Maxime Mangel

Maxime Mangel

More from Medium

I have a checklist

The 21 best StumbleUpon alternatives of 2022

9 Tips Introverts can Use Easily in 2022

An old man daydreaming outside a shop

Happy 2022! Turned 4 and this happened