Files
webstudio/fixtures/webstudio-custom-template/app/root.tsx
T
Bogdan Chadkin e34aa862bb refactor: move remix root into template (#3071)
React sdk not necessary to depend on remix. It will even complicate
remix upgrade.
2024-03-30 19:13:51 +07:00

25 lines
550 B
TypeScript

import { useEffect } from "react";
import { Links, Meta, Outlet } from "@remix-run/react";
import { subscribe } from "./web-vitals";
/**
* Custom root so we can add some custom logic for specific resurces etc like analytics, etc.
*/
const Root = () => {
useEffect(subscribe, []);
return (
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<Meta />
<Links />
</head>
<Outlet />
</html>
);
};
export default Root;