Skip to content

Commit

Permalink
feat: move charSet to meta function (remix-run#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Mar 16, 2022
1 parent 34fca71 commit ec44404
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ export const links: LinksFunction = () => {
return [{ rel: "stylesheet", href: tailwindStylesheetUrl }];
};

export const meta: MetaFunction = () => {
return {
title: "Remix Notes",
viewport: "width=device-width,initial-scale=1",
};
};
export const meta: MetaFunction = () => ({
charset: "utf-8",
title: "Remix Notes",
viewport: "width=device-width,initial-scale=1",
});

type LoaderData = {
user: Awaited<ReturnType<typeof getUser>>;
Expand All @@ -37,7 +36,6 @@ export default function App() {
return (
<html lang="en" className="h-full">
<head>
<meta charSet="utf-8" />
<Meta />
<Links />
</head>
Expand Down

0 comments on commit ec44404

Please sign in to comment.