A few weeks ago, I announced I’m writing a book about Elm for React developers. The response has been encouraging, so here’s a full chapter from the book, showing what The Elm Architecture looks like in practice—side-by-side with React.

(The formatting is slightly nicer in the actual book, but Hugo does a decent job as well.)

I’ve currently finished the introduction (published here) and drafted chapters 1-6. I don’t plan on adding all, and not in sequence, but some of it will appear on this blog, not least to get early feedback.


Update: I’m actually a bit back to the drawing board for this chapter. Early feedback (especially from the React community) has lead me to believe that I’m not successfully getting my message through with a side-by-side comparison like this, and need to rethink my approach (for this chapter, that is! I’m quite confident with the general message of my book, and other chapters – I hope – will spark more enthusiasm and less… other stuff).

How about that? That makes this very post a lot more useful for me than for the one reading it right now. Sorry about that, and thank you for your feedback – my next iteration will be better.

I’ll probably release another chapter (a more finished one) shortly.

Update 2: I humbly present to you, Chapter 2, take 2.