# react-fetch **Repository Path**: mirrors_fis-components/react-fetch ## Basic Information - **Project Name**: react-fetch - **Description**: Fork from https://github.com/zackify/react-fetch.git - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2025-12-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ##React Fetch ##Install `npm install react-fetch` ##Props - `url`: where to fetch json data from - `onSuccess`: function on successfully fetching the data - `onError`: function to be called on error - `options`: object containing parameters for the request (see the [fetch](https://fetch.spec.whatwg.org/) spec) ##Example pass an api endpoint and the resulting object will be passed as a prop. ~~~js import React from 'react' import Fetch from 'react-fetch' export default class App extends React.Component{ render(){ return ( ) } } class TestComponent extends React.Component{ render(){ console.log(this.props) return
} } React.render(, document.getElementById('app')); ~~~ ###Rebuilding Run this to view the example in `example/dist` npm run build