// src/_app.tsx
import { type AppType } from "next/app";
import { api } from "~/utils/api";
import "~/styles/globals.css";
const MyApp: AppType = ({ Component, pageProps }) => { // What does the AppType do? What should I put into its generic for pageProps?
return <Component {...pageProps} />; // What does the Component do?
};
export default api.withTRPC(MyApp);
// src/_app.tsx
import { type AppType } from "next/app";
import { api } from "~/utils/api";
import "~/styles/globals.css";
const MyApp: AppType = ({ Component, pageProps }) => { // What does the AppType do? What should I put into its generic for pageProps?
return <Component {...pageProps} />; // What does the Component do?
};
export default api.withTRPC(MyApp);