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

clientOnlyBasic.tsx

13 lines314 Bytes

1import { ClientOnly } from '@tanstack/react-router'
2import { Chart } from 'heavy-chart-library'
3import { formatData } from './utils'
4​
5export function MyComponent() {
6 return (
7 <div>
8 <ClientOnly fallback={<div>Loading...</div>}>
9 <Chart data={formatData()} />
10 </ClientOnly>
11 </div>
12 )