Discussion Thread

Student Q&A card with an avatar header, resolved pill, clipped question body, and reply and like counts.

Noor Ahmed
Noor AhmedStudent · Cohort 12
Resolved

In lesson 6, the dependency array skips the `setCount` setter. Isn't it a stale closure risk?

4 replies12

Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.

Import & use
import { Education16 } from "@/components/beste/piece/education16";

<Education16
  author="Noor Ahmed"
  role="Student · Cohort 12"
  initials="NA"
  imageSrc="https://images.unsplash.com/photo-1685703206477-aa1df00a1f0e?w=200&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8OTJ8fHBvcnRyYWl0fGVufDB8fDB8fHww"
  alt="Noor Ahmed"
  question="In lesson 6, the dependency array skips the `setCount` setter. Isn't it a stale closure risk?"
  replies={4}
  likes={12}
  resolved={true}
/>