Home

Awesome

react-data-fetch Build Status Coverage Status

A good-enough data fetching mixin for React components. No models, no stores, just data.

Bare functionality for fetching server-side JSON data inside a React omponent. Uses basic Ajax requests and setInterval for polling.

{
  "component": "List",
  "dataUrl": "/api/users.json",
  // Refresh users every 5 seconds
  "pollInterval": 5000
}

Props:

Context methods:

The DataFetch mixin introduces a jQuery dependency, its built-in JSONP support is worth the money.