Closed pizzarob closed 9 years ago
@realseanp looks like this an issue with react-router discussed here. I read in one of the issue comments that the updated versions of react-router fixes it. let me know.
about to embark on a similar issue using "react-router": "1.0.0-beta2" so this should be interesting.
closing this. please reopen if this is still an issue. thanks.
I have added a Navigation component within layout.jsx. Currently I have to use anchor tags, rather than React Routers Link component, which would be preferred. When I require the Link component within the render function of the Navigation component I can use Link and it seems to work on the front end, but I get the following error in the console:
And here is the content of the render function of Nav.
Is this because the layout component is coming from the server and our router is not available at that time? But why then if I include Link = require('react-router').Link within the render function of Nav does it work after its rendered to the client?
Is there a known way to make Link work in the layout component? Because it seems like that is the most logical place for a navigation.