Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 598 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 598 Bytes

React Hook Fetcher

Simple React hook for the fetch API.

Intall

$ npm install react-hook-fetcher

Example

function App() {
  const {
    fetcher,
    result,
    isLoading,
  } = useFetcher();

  useEffect(() => {
   fetcher('http://http://google.com.au/')
  }, []);

  return <div>{isLoading ? 'Loading...' : result}</div>;
}

By the makers of BEEKAI

We also make BEEKAI. Build the next-generation forms with modern technology and best in class user experience and accessibility.