Open History to see the last commit
1import React, { useState } from 'react'
2import { createFileRoute } from '@tanstack/react-router'
3β
4export const Route = createFileRoute('/home')({
5 component: Home,
6})
7β
8export default function Home() {
9 const [one, setOne] = useState('this is from a state')
10β
11 return (
12 <div>
13 <h1>{one}</h1>
14 </div>
15 )
16}