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

linkProps.tsx

15 lines356 Bytes

1import { createFileRoute } from '@tanstack/react-router'
2import * as React from 'react'
3import { Link, linkOptions } from '@tanstack/react-router'
4​
5export const Route = createFileRoute('/linkProps')({
6 component: LinkPropsPage,
7})
8​
9function LinkPropsPage() {
10 const linkProps = linkOptions({
11 to: '/absolute',
12 })
13​
14 return <Link {...linkProps} />