React 0.14 introduced the ability to use pure functions as components. The react team calls them functional components in their announcement. The rest of the world calls them pure components.
- Examples of pure components.
- Pure component factories, so you can use a single React instance, even if you load React from CDN.
- Unit test example with tape, demonstrating an easy way to test pure components.
Clone the repo & install:
Optionally set environment variables HOST and PORT, start the dev server and follow instructions: As of this writing:
Cloud9 (c9.io) HOST='0.0.0.0' PORT=8080
... read the whole story at github.com.