Build a notice list page. Each notice has a 'Read more' button; pressing it expands the body, and pressing again collapses it. Complete NoticeToggle.
Complete the read-more toggle on a notice list page with the Next.js app router. Each notice has a 'Read more' button; pressing it expands the body and pressing again collapses it. The notice data is a static array (lib/notices), and the toggle logic lives in the toggle component file under components.
The Next.js app router has a distinction about where a component runs. The part that only renders a screen and the part that responds to a user's clicks by changing the screen run in different places. This problem is about building a small widget with interactive behavior — pressing a button opens and closes a body. The habit that matters is confirming the screen actually changes each time you press.