Files
react-test/examples/material-ui-remix-ts/app/routes/_index.tsx
how2ice 005cf56baf
Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
init project
2025-12-12 14:26:25 +09:00

26 lines
812 B
TypeScript

import * as React from 'react';
import type { MetaFunction } from '@remix-run/node';
import { Link as RemixLink } from '@remix-run/react';
import Typography from '@mui/material/Typography';
import Link from '@mui/material/Link';
// https://remix.run/docs/en/main/route/meta
export const meta: MetaFunction = () => [
{ title: 'Remix Starter' },
{ name: 'description', content: 'Welcome to remix!' },
];
// https://remix.run/docs/en/main/file-conventions/routes#basic-routes
export default function Index() {
return (
<React.Fragment>
<Typography variant="h4" component="h1" sx={{ mb: 2 }}>
Material UI Remix in TypeScript example
</Typography>
<Link to="/about" color="secondary" component={RemixLink}>
Go to the about page
</Link>
</React.Fragment>
);
}