17 lines
		
	
	
		
			458 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			17 lines
		
	
	
		
			458 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
|  | // src/main.tsx
 | ||
|  | import React from 'react' | ||
|  | import ReactDOM from 'react-dom/client' | ||
|  | import App from './App.tsx' | ||
|  | import './index.css' | ||
|  | import { QueryClient, QueryClientProvider } from '@tanstack/react-query' | ||
|  | 
 | ||
|  | // Crea un cliente
 | ||
|  | const queryClient = new QueryClient() | ||
|  | 
 | ||
|  | ReactDOM.createRoot(document.getElementById('root')!).render( | ||
|  |   <React.StrictMode> | ||
|  |     <QueryClientProvider client={queryClient}> | ||
|  |       <App /> | ||
|  |     </QueryClientProvider> | ||
|  |   </React.StrictMode>, | ||
|  | ) |