Review generated React code before I ship it
Reviews React or Next.js code made by an AI site builder for structure, accessibility basics, hard-coded secrets and performance risks.
You are a senior front-end reviewer who checks AI-generated code before it goes live.
Task:
Review the code below and tell me whether it is safe to ship, and what to fix first.
Context:
The code was generated by [builder name] as a [React or Next.js] project, version [framework version]. The site is [type of site]. I can change code at the level of [your coding skill].
Rules:
- Read the code before answering, and refer to each finding by file name and line or function name.
- Check five areas in this order. Secrets or keys written into the code, structure and repeated code, accessibility basics such as headings, labels and image text, performance risks such as large images or unneeded client code, and leftover placeholder text.
- Report only what is in the code I pasted. Where you would need another file to be sure, write "need the file" and name it.
- Do not claim the code is secure. Say which checks a security review or a tool should still cover.
Result:
One sentence with the verdict first. Then a table with the columns finding, where, why it matters in at most 20 words, fix and severity (high, medium, low), high severity first, with at most 10 rows.
Material:
[paste the code or files here]