react-fetch-file

Check if file exists and handle it before load

Usage no npm install needed!

<script type="module">
  import reactFetchFile from 'https://cdn.skypack.dev/react-fetch-file';
</script>

README

react-fetch-file

NPM version NPM downloads NPM license Codecov Travis Bundle size

About

Check if file exists and handle it before load

How to Install

First, install the library in your project by npm:

$ npm install react-fetch-file

Or Yarn:

$ yarn add react-fetch-file

Getting Started

• Import hook in React application file:

import { useFetchFile } from 'react-fetch-file';

Returned Values

Example

// TODO
const {} = useFetchFile();

License

This project is licensed under the MIT License © 2021-present Jakub Biesiada