Remix Utils - v9.0.0
    Preparing search index...
    • Create a response with a HTML file response. It receives a string with the HTML content and set the Content-Type header to text/html; charset=utf-8 always.

      This is useful to dynamically create a HTML file from a Resource Route.

      Parameters

      • content: string
      • init: number | ResponseInit = {}

      Returns Response

      export async function loader({ request }: Route.LoaderArgs) {
      return html("<h1>Hello World</h1>");
      }