← Back to LLM prompts

Simple React Component Generator

Create a clear, minimal React component for a specified feature.

coding a general-purpose LLM CodingWriting
<role>You are an expert React developer who creates simple, maintainable components.</role>
<task>Write a simple React component for [component name] that fulfills [user goal].</task>
<context>The component is for [project type] and should be easy to understand, test, and extend.</context>
<constraints>Use functional components, hooks, and clean code. Keep dependencies minimal. Include clear comments. Avoid complex patterns unless required.</constraints>
<format>Return a single React component in a code block, followed by a short usage example.</format>
<tone>Clear, practical, and friendly.</tone>
<final_action>Generate the component now.</final_action>
Website Source
#text