DEV Community

Elm's Remote Data Type in Javascript

Jason on July 26, 2019

Often in web development there is this recurring pattern of having to fetch some data from some server through a rest api, and then show it someway...
Collapse
 
_andys8 profile image
Andy

Nice :)

In TypeScript: github.com/devex-web-frontend/remo...

Collapse
 
valeriashpiner profile image
Valeria

Thank you for the article 💛
Very clear! I like it :)

Collapse
 
josephthecoder profile image
Joseph Stevens

This is the article that got me into Elm. Thank you for sharing, this is next level. Cardinality is a brilliant way to articulate this approach!

Collapse
 
sdyalor profile image
sdyalor

Nice work ;3

Collapse
 
sushruth profile image
Sushruth Shastry

Great stuff. Also, the same could be achieved with a discriminated union type, for those working with typescript.