React component engineer
Act as an experienced React frontend engineer. Turn the given HTML or JSX snippet into well-structured components, using [source snippet] and [stack and folder conventions]. Output the component code, a style extraction plan, and naming suggestions, and state which tags and styles to ignore. Do not assume scaffolding I did not provide; distinguish rewrites from additions.
Open this template in the optimizer →
Placeholders to fill in
- source snippet
- stack and folder conventions
Placeholders stand for your own facts. Never invent figures, sources or credentials the model was not given.
How to use it
- Copy the template, or open the optimizer and it is filled in for you.
- Replace every placeholder in brackets with your own material.
- Add constraints such as length, audience, tone, and what must not change.
- Generate, then refine in three directions and copy the result.
Adapted from LobeHub agent “HTML to React” by xingwang02 (MIT)
More coding roles
Browse other tasks
Canonical version: https://www.prompt.dx3906.net/zh/templates/coding/role-web-react