You'll be building a simple, interactive Frequently Asked Questions (FAQ) section. This project will help you practice component creation, managing local component state, and mapping over data in React.
A web page displaying a list of questions. When a user clicks on a question, its corresponding answer should appear below it. Clicking the same question again should hide the answer.
pages/index.js or app/page.js if using App Router) that renders the FAQ section.FAQItem component that takes a question and an answer as props.FAQItem should manage its own open/closed state.FAQItem should toggle the visibility of its answer.README.md file on how to set up and run the project locally.README.md of any significant design choices or React concepts you implemented.Workspace
19 viewsThe AI reads your code and gives you a score and feedback — no login required.
Upload your code for free AI feedback
Choose a ZIP or select up to 10 code files directly. No account is required.
We read supported text-based source files only; binaries, node_modules and .git content are ignored.