Skip to content
Learn Netverks

Lesson

Step 5/36 14% through track

playground-workflow

Playground workflow

Last reviewed Jun 1, 2026 Content v20260601
Track mode
client_nextjs
Means
In-browser Next.js (client components)
Reading
~2 min
Level
beginner

This lesson

This lesson teaches Playground workflow: the concepts, APIs, and habits you need before advancing in Next.js.

Without Playground workflow, you will struggle to read or extend Next.js codebases and playground exercises.

You will apply Playground workflow in contexts like: Marketing sites, dashboards, e-commerce, and Vercel-style deployments that need hybrid static + dynamic pages.

Write TSX for Client Components, click Run—React 18 CDN + in-browser TSX compile; use client/server lessons explain App Router concepts; mountApp renders interactive UI; printOutput feeds the terminal.

At the start of the track—complete before JSX-heavy lessons that assume you understand the playground.

Get the most from each lesson’s live editor—the same habits transfer to local create-next-app projects, even though full server rendering only runs on Node in real apps.

Recommended workflow

  1. Read the concept section before editing code—especially server vs client boundaries.
  2. Click Run in browser to compile TSX and execute in the preview iframe.
  3. Use printOutput(...) to simulate server results, route params, or cache keys in early and conceptual lessons.
  4. When a lesson shows UI, call mountApp(<YourComponent />) — Client Component patterns render in #root.
  5. You may write 'use client' at the top like a real project; the runner strips it here so TSX still executes in the browser sandbox.
  6. Change one idea at a time—one hook, one prop, one simulated fetch.
  7. Reset the editor if you drift far from the lesson goal.

What happens when you Run

  • TSX transpiles in the browser (same mental model as local tsc + JSX).
  • React 18 loads from CDN; destructure hooks: const { useState } = React;
  • Server-only lessons use terminal output and HTML file-tree examples—replicate those files locally with npx create-next-app@latest when ready.

Review React intro if hooks confuse you, and TypeScript intro if prop types block progress.

Self-check

  1. Why does the playground strip 'use client'?
  2. When should you use printOutput vs mountApp in this track?

Challenge

First Next.js run

  1. Click Run in browser with the default code.
  2. Confirm typeof React prints object.
  3. Add a printOutput with your favorite App Router feature name.

Done when: the terminal shows React types and your custom message.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs in your browser in a sandboxed frame. Backend runners appear when this track’s profile allows them.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • Why strip use client here?
  • When use mountApp?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump