Remix Logo
main
Branches
main (1.16.1)dev
Versions
1.16.1
LiveReload

<LiveReload />

This component connects your app to the Remix asset server and automatically reloads the page when files change in development. In production it renders null, so you can safely render it always in your root route.

import { LiveReload } from "@remix-run/react";

export default function Root() {
  return (
    <html>
      <head />
      <body>
        <LiveReload />
      </body>
    </html>
  );
}
Docs and examples licensed under MIT