import { json } from "remix";
      
      export async function loader() {
        const res = await fetch("https://api.github.com/gists");
        return json(await res.json());
      }
      Typescript language logo
      your recipe card header background

      Loader external data

      Remix TypeScript public recipes

      The loader() function fetches the GitHub Gist API and returns the JSON response.

      Library: remix

      Shortcut: remix.loader.external_api

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.