New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-fetch-loader

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-fetch-loader

Higher order component for managing loading state and error state.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

React Fetch Loader

Higher order component for managing loading state and error state.

Usage Example

Props:

  • fetch: the AJAX call as a promise (required)
  • errorText: text to display on error state

Basic Example:

    <FetchLoader fetch={() => fetch('https://api.github.com/users/asafda')} errorText="Ooops...">
      <DataDisplayer/>
    </FetchLoader>

Installation

Via NPM:

npm install --save react-fetch-loader

Via Yarn:

yarn add react-fetch-loader

FAQs

Package last updated on 18 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts