Ninety-nine Pitchers of Malt

    react-hook-fetcher

    1.0.1 • Public • Published

    React Hook Fetcher

    React simple fetch API hook

    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>;
    }
    

    Keywords

    none

    Install

    npm i react-hook-fetcher

    DownloadsWeekly Downloads

    5

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.21 kB

    Total Files

    3

    Last publish

    Collaborators

    • bluebill1049