Skip to content

Instantly share code, notes, and snippets.

View thanhtschoepe's full-sized avatar

Thanh Tschoepe thanhtschoepe

View GitHub Profile
@thanhtschoepe
thanhtschoepe / ReportTable.tsx
Last active May 9, 2022 20:07
How to write a React component
import { useQuery } from 'react-query'
import LoadingIndicator from '../core/components/LoadingIndicator
import ErrorMessage from '../core/components/ErrorMessage
import { Report } from '../types'
import { showTeamReport } from '../utils/ApiHelper.js'
// Note: Declare with interface, not type.
interface ReactTableProps {
teamId: string
}