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!
@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!
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.