Styled-components-website: Add "Why am I getting attribute warnings?" to the FAQ

Created on 26 Oct 2017  路  5Comments  路  Source: styled-components/styled-components-website

Basically, my answer in this issue https://github.com/styled-components/styled-components/issues/1198#issuecomment-336628848 needs to be cleaned up and put into our FAQ!

enhancement good first issue

Most helpful comment

I submitted a PR for adding this documentation. I peeped the RR source for Link (https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/modules/Link.js#L75) and it is as @mxstbr described. I kept his explanation but adjusted the examples slightly to provide a bit more detail.

I think there are many instances where this can happen aside from RR. People will probably run into this as they're building integration tests so I took a more generalized explanation but kept the "Link" example.

All 5 comments

@mxstbr Should we just explain it over react-router just like you did in that issue or make it more generalized?

More generalised I think?

Yea and then we can take react router as an example since it's the most common cause of this confusion.

I submitted a PR for adding this documentation. I peeped the RR source for Link (https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/modules/Link.js#L75) and it is as @mxstbr described. I kept his explanation but adjusted the examples slightly to provide a bit more detail.

I think there are many instances where this can happen aside from RR. People will probably run into this as they're building integration tests so I took a more generalized explanation but kept the "Link" example.

Thank you @rodocite!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mxstbr picture mxstbr  路  4Comments

johannesnagl picture johannesnagl  路  4Comments

kitten picture kitten  路  6Comments

kitten picture kitten  路  7Comments

mxstbr picture mxstbr  路  4Comments