c_Learn & Practice AILEARN/Add a reusable React component
← Prompt library
Level 3 · Frontend

Add a reusable React component

Implement {{COMPONENT}} in {{PROJECT_NAME}} using existing component conventions. Define props and loading, empty, error, and success states.

ReactIntermediate

Fill in the variables

Replace the placeholders with your project’s real details. Keep secrets out.

Example input

PROJECT_NAME: codex-practice · SCOPE: index.html

Expected result

Exercise each meaningful state and verify keyboard interaction without changing unrelated components.

Expected result

Review and edit before using it in your project.

Before you run

Practice safely: use a disposable folder and sample data. Check every placeholder and the actual project state before using this template.

Esc · Close