Skip to content

Invalid "unknown prop" warnings for SSR #10265

@bvaughn

Description

@bvaughn

Run the fixtures/ssr test harness. In the terminal, the following warning is logged:

Warning: Unknown prop `onClick` on <a> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
  in a (at Page.js:12)
  in p (at Page.js:18)
  in div (at Page.js:17)
  in Page (at App.js:12)
  in div (at App.js:10)
  in body (at Chrome.js:17)
  in html (at Chrome.js:9)
  in Chrome (at App.js:9)
  in App (at render.js:18)

SSR behavior should match client-side behavior and not warn for a valid attribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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