joshblack / react-data-store

General Data Store for React Components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Roadmap Planning

joshblack opened this issue · comments

  • Example Fetch component
  • Example HOC Query component

API

// Fetch.js
<Fetch path="">
  {(results) => /* ... */}
</Fetch>
// Query.js

export default Query(MyComponent, {
  path: '',
  loader: () => <p>Loading...</p>,
});