www/versioned_docs/version-10.x/client/nextjs/introduction.mdx
Next.js makes it easy to build a client and server together in one codebase. tRPC makes it easy to share types between them, ensuring typesafety for your application's data fetching.
Our Next.js integration is built on top of our React Query Integration with some Next.js specific APIs, to handle both client and server side rendering.
When using the Next.js integration, you'll get the following features:
@trpc/next provides a higher-order component (HOC) that wraps your app with the necessary providers so you don't have to do it yourself.:::tip If you're using tRPC in a new project, consider using one of the example projects for reference: tRPC Example Projects :::