Skip to content

React Review Audit #1

Description

@react-doctor
⚠️ 6 warnings 98 score
Copy as prompt
Fix the following React Review diagnostics in my codebase.

## Warnings (6)

1. [warning] button-has-type — components/Nav.tsx:61
   `<button>` elements must have an explicit `type` attribute.

2. [warning] button-has-type — components/AppMockup.tsx:153
   `<button>` elements must have an explicit `type` attribute.

3. [warning] no-danger — components/Markdown.tsx:10
   Do not use `dangerouslySetInnerHTML` — it injects raw HTML and is a common XSS vector.

4. [warning] unused-export — lib/docs.ts:37
   Unused export: `getAllDocs`

5. [warning] unused-export — lib/prism-trill.ts:42
   Unused export: `default`

6. [warning] unused-export — lib/seo.ts:1
   Unused export: `siteName`

⚠️ Warnings (6)

Unused export: `getAllDocs` · 3 in 3 files

unused-export

Drop the export keyword (or remove the declaration) if no other module uses this symbol.

File Lines
lib/docs.ts 37
lib/prism-trill.ts 42
lib/seo.ts 1
`<button>` elements must have an explicit `type` attribute. · 2 in 2 files

button-has-type

Set type="button" (or "submit" / "reset") explicitly on every &lt;button&gt;.

File Lines
components/Nav.tsx 61
components/AppMockup.tsx 153
Do not use `dangerouslySetInnerHTML` — it injects raw HTML and is a common XSS vector. · 1 in 1 file

no-danger

Render trusted content as React children rather than injecting raw HTML.

File Lines
components/Markdown.tsx 10

Reviewed by reactreview for commit d0d97db. Configure here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions