Layout scaffolding for Web apps.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

root.tsx 904 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import {
  2. Links,
  3. LiveReload,
  4. Meta,
  5. Outlet,
  6. Scripts,
  7. ScrollRestoration,
  8. } from "@remix-run/react";
  9. import type {LinksFunction} from '@remix-run/node';
  10. import { setup, extractCss } from '@tesseract-design/viewfinder-react';
  11. import * as React from 'react';
  12. import * as gooberPrefixer from 'goober/prefixer';
  13. import globalStylesheetUrl from './style.css';
  14. setup(React.createElement, gooberPrefixer.prefix);
  15. export const links: LinksFunction = () => {
  16. return [{ rel: "stylesheet", href: globalStylesheetUrl }];
  17. };
  18. const App = () => (
  19. <html lang="en-PH">
  20. <head>
  21. <meta charSet="utf-8" />
  22. <meta name="viewport" content="width=device-width,initial-scale=1" />
  23. <Meta />
  24. <Links />
  25. <style>{extractCss()}</style>
  26. </head>
  27. <body>
  28. <Outlet />
  29. <ScrollRestoration />
  30. <Scripts />
  31. <LiveReload />
  32. </body>
  33. </html>
  34. )
  35. export default App