This project demonstrates different approaches to data streaming in Next.js.
main: Base application without streamingoption-1-loading: Implements streaming using loading.tsxoption-2-suspense: Implements streaming using React Suspense components
- Clone the repository
 - Install dependencies:
 
npm install- Start with the main branch:
 
git checkout main
npm run dev- To try different streaming approaches:
 
# For loading.tsx approach
git checkout option-1-loading
# For Suspense approach
git checkout option-2-suspense- Base app (main branch): Standard Next.js app without streaming
 - Loading approach (option-1-loading): Uses Next.js's built-in loading.tsx for streaming
 - Suspense approach (option-2-suspense): Uses React Suspense boundaries for streaming
 
Run the development server:
npm run devOpen http://localhost:3000 to view the app.