Skip to content

Instantly share code, notes, and snippets.

@ohanhi
Last active February 3, 2021 18:14
Show Gist options
  • Star 94 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohanhi/d103ee7dcbe51e803d6c to your computer and use it in GitHub Desktop.
Save ohanhi/d103ee7dcbe51e803d6c to your computer and use it in GitHub Desktop.
The Joy of Composition - Why stateless rendering is pure bliss

This is a proposal for a lightning talk at the Reactive 2015 conference.

NOTE: If you like this, star ⭐ the Gist - the amount of stars decides whether it makes the cut!

The Joy of Composition

Why stateless rendering is pure bliss

React just got stateless components, meaning that they are in essence pure functions for rendering. Pure functions make it dead simple - even fun - to refactor your views into more manageable pieces.

As the author of hyperscript-helpers and an avid user of Elm, I have fallen in love with functional UI composition. Inspired by @staltz's To JSX or not to JSX discussion, specifically this comment: "Most UI tree code should look small.", I would love to share the joys of applying functional programming principles into dynamic UI rendering.

@jbelmont
Copy link

@rafaelrinaldi
Copy link

✨ 👍 💫

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment