Once you start writing apps (and packages) in Elm, it’s
Yet when implementing features for paying clients, it doesn’t always make sense
them in pure Elm. In fact, sometimes it isn’t even possible!
necessary – ports!
Yet ports aren’t always the right answer, and there are several alternatives
which can be useful in certain situations.
For the purposes of this post, I’m going to assume that you’re familiar with
the many cases in which ports work well, and focus instead on a few cases where
you might want to try something else:
- When you want synchronous answers.
- When you need some context when you get the answer.