improve app readmes and component name

This commit is contained in:
sid palas
2023-02-19 08:50:07 -05:00
parent c813cdd7ce
commit 92f640e252
4 changed files with 19 additions and 21 deletions

View File

@ -10,7 +10,7 @@ import './App.css'
const queryClient = new QueryClient();
function Example(props) {
function CurrentTime(props) {
const { isLoading, error, data, isFetching } = useQuery({
queryKey: [props.api],
queryFn: () =>
@ -37,8 +37,8 @@ export function App() {
return (
<QueryClientProvider client={queryClient}>
<h1>Hey Team! 👋</h1>
<Example api="/api/golang/"/>
<Example api="/api/node/"/>
<CurrentTime api="/api/golang/"/>
<CurrentTime api="/api/node/"/>
<ReactQueryDevtools initialIsOpen={false} />
</QueryClientProvider>
);