Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 536 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 536 Bytes

Next.js 14 + daisyUI + SSR

This is an example project that integrates daisyUI with the new Next.js 14 App Router. This example uses cookies to load the themes server-side.

Methods

Use whichever suits your taste.

  1. Using Server Actions. (NEW)
  2. Using Javascript to set cookies client-side. (OLD)

Getting Started

First, install the dependencies:

npm install

Then, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.