All Projects → CharlesMangwa → React Data Fetching

CharlesMangwa / React Data Fetching

Licence: mit
🎣 Declarative data fetching for React.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Data Fetching

Ngx Restangular
Restangular for Angular 2 and higher versions
Stars: ✭ 787 (+58.67%)
Mutual labels:  api, fetch
Vue Api Request
Control your API calls by using an amazing component which supports axios and vue-resource
Stars: ✭ 116 (-76.61%)
Mutual labels:  api, component
Hellobooks
A Single-Page Library Management App built with nodejs, express and react and redux
Stars: ✭ 37 (-92.54%)
Mutual labels:  api, component
Redux Api Call
One declarative API to create reducers, action creators and selectors for any API calls
Stars: ✭ 63 (-87.3%)
Mutual labels:  api, fetch
Mande
600 bytes convenient and modern wrapper around fetch
Stars: ✭ 154 (-68.95%)
Mutual labels:  api, fetch
Miniprogram Demo
微信小程序组件 / API / 云开发示例
Stars: ✭ 5,207 (+949.8%)
Mutual labels:  api, component
Apipeline
Feature-rich and pluggable offline-first API wrapper for all your javascript environements ! Easily wire-up your API and make your app work offline in minutes.
Stars: ✭ 92 (-81.45%)
Mutual labels:  api, fetch
React Async Fetcher
React component for asynchronous loading/fetch online data
Stars: ✭ 50 (-89.92%)
Mutual labels:  fetch, component
React Axios
Axios Components for React with child function callback
Stars: ✭ 153 (-69.15%)
Mutual labels:  api, component
Nuxt Dev To Clone
Build DEV.TO clone with Nuxt.js and new `fetch` hook
Stars: ✭ 118 (-76.21%)
Mutual labels:  api, fetch
Nion
🌵 Declarative API Data Management Library built on top of redux 🌵
Stars: ✭ 116 (-76.61%)
Mutual labels:  api, fetch
React Fetches
🐙React Fetches a new way to make requests into your REST API's.
Stars: ✭ 253 (-48.99%)
Mutual labels:  api, fetch
Component
🔥🔥🔥A powerful componentized framework.一个强大、100% 兼容、支持 AndroidX、支持 Kotlin并且灵活的组件化框架
Stars: ✭ 2,434 (+390.73%)
Mutual labels:  api, component
React Refetch
A simple, declarative, and composable way to fetch data for React components
Stars: ✭ 3,418 (+589.11%)
Mutual labels:  api, fetch
Zerocode
A community-developed, free, open source, microservices API automation and load testing framework built using JUnit core runners for Http REST, SOAP, Security, Database, Kafka and much more. Zerocode Open Source enables you to create, change, orchestrate and maintain your automated test cases declaratively with absolute ease.
Stars: ✭ 482 (-2.82%)
Mutual labels:  api
Datafire
A framework for building integrations and APIs
Stars: ✭ 487 (-1.81%)
Mutual labels:  api
Droplet kit
DropletKit is the official DigitalOcean API client for Ruby.
Stars: ✭ 482 (-2.82%)
Mutual labels:  api
Fetch Suspense
A React hook compatible with React 16.6's Suspense component.
Stars: ✭ 479 (-3.43%)
Mutual labels:  fetch
Java Speech Api
The J.A.R.V.I.S. Speech API is designed to be simple and efficient, using the speech engines created by Google to provide functionality for parts of the API. Essentially, it is an API written in Java, including a recognizer, synthesizer, and a microphone capture utility. The project uses Google services for the synthesizer and recognizer. While this requires an Internet connection, it provides a complete, modern, and fully functional speech API in Java.
Stars: ✭ 490 (-1.21%)
Mutual labels:  api
Metingjs
🍰 A powerful plugin connect APlayer and Meting
Stars: ✭ 488 (-1.61%)
Mutual labels:  api

Declarative data fetching for React 🎣

build: CircleCI coverage: Coveralls version: next gzip size code style module formats: umd, cjs, esm

react-data-fetching provides a very intuitive way to perform any REST API call without hassle, through a single React component. It also helps you take care of timeouts, loading states, errors handling, data saving, uploading/downloading progress, etc. Fetching data while letting the user know what's going on has never been that easy!

The package is quite lightweight (~7 kB gzipped) and has been built from the ground up with universal apps in mind: you can use it wherever React is rendering - meaning it works seamlessly with React (web) & React Native!

Installation

Using Yarn:

$ yarn add [email protected]

Then, use it as you would with anything else:

// using ES6 modules
import { Fetch } from 'react-data-fetching'

// using CommonJS modules
var Fetch = require('react-data-fetching').Fetch

The UMD build is also available on unpkg:

<script src="https://unpkg.com/react-data-fetching/umd/react-data-fetching.min.js"></script>

You can find the library on window.ReactDataFetching.

Usage

The following illustrates the simplest way to use react-data-fetching:

import React, { Component } from 'react'
import { Fetch } from 'react-data-fetching'

import { Loader } from './components'

export default class App extends Component {
  render() {
    return (
      <Fetch
        loader={<Loader />} // Replace this with your lovely handcrafted loader
        url="https://api.github.com/users/octocat"
        timeout={5000}
      >
        {({ data }) => (
          <div>
            <h1>Username</h1>
            <p>{data.name}</p>
          </div>
        )}
      </Fetch>
    )
  }
}

The package gives access to <Fetch>, <FetchProvider> and requestToApi(). To have an in-depth explanation of how to use them, how they work and even more, head to this post: Introducing React Data Fetching 🎣.

Docs

The documentation is available here: https://react-data-fetching.now.sh.

Todo

Want to submit a PR but don't know where to start? Here is a list of features you could consider! This might change in the future as the API is far from being complete.

  • [x] Add compatibility to React 16.3.0+ lifecycles ⚛️
  • [x] Implement React 16.3.0+ new context API ⚛️
  • [ ] Add an /examples folder for newcomers & contributors 📂
  • [ ] Add the ability to run multiple fetches serially or in parallel ⛓
  • [ ] Implement a caching system (through React's Suspense?) 📥
  • [ ] What else?

About

react-data-fetching is currently developed and maintained by yours truly, @Charles_Mangwa. Feel free to get in touch if you want to contribute!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].