This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// some-component.tsx | |
import React, { useEffect, useState } from 'react'( | |
import useDocumentApi from '../../hooks/useDocumentApi'; | |
import useAuth from '../../hooks/useAuth'; | |
export const SomeComponent = (): React.ReactElement => { | |
const { loading, documents } = useDocumentApi(); | |
const { isSignedIn } = useAuth(); | |
const [data, setData] = useState<TableData[]>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// some-component.tsx | |
import React, { useEffect, useState } from 'react'( | |
import useDocumentApi from '../../hooks/useDocumentApi'; | |
import useAuth from '../../hooks/useAuth'; | |
export const SomeComponent = (): React.ReactElement => { | |
const { getDocuments, loading, documents } = useDocumentApi(); | |
const { isSignedIn } = useAuth(); | |
const [data, setData] = useState<TableData[]>(); |