https://github.com/npryce/higher-order-react-components-demo
A demonstration of higher-order React components
https://github.com/npryce/higher-order-react-components-demo
Last synced: about 1 year ago
JSON representation
A demonstration of higher-order React components
- Host: GitHub
- URL: https://github.com/npryce/higher-order-react-components-demo
- Owner: npryce
- Created: 2015-10-21T13:36:39.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-28T13:52:55.000Z (over 10 years ago)
- Last Synced: 2025-03-27T10:38:13.410Z (about 1 year ago)
- Language: JavaScript
- Size: 176 KB
- Stars: 38
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A demonstration of Higher-Order React components
================================================
The components Country and CountryChooser display data synchronously -- it is passed to their props.
The higher order component Promised decorates a component class to load props asynchronously from a promise.
These are combined in the main.js entry point to load country information from HTTP+JSON APIs.
Building
--------
Prerequisites:
* node and npm
* Gnu Make & the standard Unix command-line utilities
* jq
On MacOS X these can all be installed with Homebrew.
To build:
% npm install
% make
To run:
Execute the command:
% make available
Then open [http://localhost:8000/](http://localhost:8000/) in a modern web browser.