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

imported.tsx

27 lines576 Bytes

1import * as React from 'react'
2​
3export const importedComponent = () => {
4 return <div>I am imported</div>
5}
6​
7export const importedErrorComponent = () => {
8 return <div>I am an error imported</div>
9}
10​
11export const importedNotFoundComponent = () => {
12 return <div>I am a not found imported</div>
14​
15export const importedPendingComponent = () => {
16 return <div>I am a pending imported</div>
18​
19export const importedLoader = () => {
20 return {
21 randomNumber: Math.random(),
22 }
24​
25export default function ImportedDefaultComponent() {
26 return <div>Default imported</div>