Skip to content
Source
Sign inSign up
TanStack/cli
Open History to see the last commit

index.tsx.ejs

19 lines451 Bytes

1<% if (codeRouter) { ignoreFile() } %>
2import { createFileRoute } from "@tanstack/react-router";
3<% if (!tailwind) { %>import "../App.css";<% } %>
4​
5export const Route = createFileRoute("/")({
6 component: App,
7});
8​
9function App() {
10 return (<% if (tailwind) { %>
11 <div className="text-center">
12 <h1>I'm a customized setup</h1>
13 </div>
14<% } else { %>
15 <div className="App">
16 <h1>I'm a customized setup</h1>
17 </div>
18<% } %> );