nextjs
Hi everyone, what is the recommended way to build an app with Refine, using Next.js or React?
2 Replies
Hi @vangelis191. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Refine supports both Next.js and React for building applications. However, the choice between Next.js and React depends on your specific use case and requirements.
Refine provides support for Server Side Rendering (SSR) with Next.js, which is a distinguishing feature that sets it apart from other frameworks. This feature allows you to develop both B2B and B2C applications, as well as admin panels. Refine follows Next.js conventions and provides helper modules when necessary. Here's a basic setup for SSR with Next.js:
Source (https://refine.dev/blog/refine-vs-react-admin#ssr---nextjs-support-1)
On the other hand, if you're starting a new project, Refine recommends using the
create refine-app
command-line interface (CLI) to set up your project according to your preferences. This command will bootstrap a Next.js Refine template:
Source (https://refine.dev/blog/next-js-pwa#project-setup)
In conclusion, both Next.js and React are suitable for building applications with Refine. The choice depends on your project's specific needs and requirements.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@690946936085282856> kapa.ai is still learning and improving, please let us know how it did by reacting below