Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Props cascade down to child nodes #41

Open
robertrossmann opened this issue Sep 17, 2016 · 0 comments
Open

Props cascade down to child nodes #41

robertrossmann opened this issue Sep 17, 2016 · 0 comments

Comments

@robertrossmann
Copy link

My console shows up the following warnings when I use some of the components:

Warning: Unknown props `glyph`, `ptClass`, `ptStyle`, `active`, `pullRight` on <button> tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop
    in button (created by Constructor)
    in Constructor (created by Menubar)
    in div (created by Constructor)
    in Constructor (created by Menubar)
    in div (created by Constructor)
    in Constructor (created by Menubar)
    in header (created by Constructor)
    in Constructor (created by Menubar)
    in div (created by Menubar)
    in Menubar (created by Application)
    in div (created by Constructor)
    in Constructor (created by Application)
    in Application
    in Provider

Warning: Unknown props `withText`, `tab` on <span> tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop
    in span (created by Constructor)
    in Constructor (created by Constructor)
    in button (created by Constructor)
    in Constructor (created by Menubar)
    in div (created by Constructor)
    in Constructor (created by Menubar)
    in div (created by Constructor)
    in Constructor (created by Menubar)
    in header (created by Constructor)
    in Constructor (created by Menubar)
    in div (created by Menubar)
    in Menubar (created by Application)
    in div (created by Constructor)
    in Constructor (created by Application)
    in Application
    in Provider

The linked Facebook docs page mentions that this is likely due to a parent element accidentally transferring its props to a child element.

The components which caused these warnings can be inspected in this repository, if needed.

react-photonkit@0.4.1
react@15.3.1

I do not have sufficient experience with React yet, so all I can do is inform you about this (instead of sending a PR). I hope this will be helpful. :) Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant