React Gantt with Next.js
Next.js Quick Start
You should be familiar with the basic concepts of React and Next.js. If not, refer to their official documentation before starting this guide.
DHTMLX React Gantt is fully compatible with Next.js. In this tutorial we will create a simple Next.js application and render a Gantt chart on a page.
Creating a project
Before creating a new project, install Node.js.
To scaffold a Next.js application, run:
npx create-next-app@latest
When prompted, choose:
- Project name: react-gantt-nextjs-quick-start
- Use the default template (TypeScript, ESLint, Tailwind CSS, App Router, Turbopack)
Next.js will create the project structure and install the basic dependencies.
After installation, navigate into the project directory:
cd react-gantt-nextjs-quick-start