{"action":"created","issue":{"url":"https://api.github.com/repos/grommet/grommet/issues/576","repository_url":"https://api.github.com/repos/grommet/grommet","labels_url":"https://api.github.com/repos/grommet/grommet/issues/576/labels{/name}","comments_url":"https://api.github.com/repos/grommet/grommet/issues/576/comments","events_url":"https://api.github.com/repos/grommet/grommet/issues/576/events","html_url":"https://github.com/grommet/grommet/issues/576","id":154628113,"number":576,"title":"Using Anchor with Link from react-router","user":{"login":"jameswyse","id":1144357,"avatar_url":"https://avatars.githubusercontent.com/u/1144357?v=3","gravatar_id":"","url":"https://api.github.com/users/jameswyse","html_url":"https://github.com/jameswyse","followers_url":"https://api.github.com/users/jameswyse/followers","following_url":"https://api.github.com/users/jameswyse/following{/other_user}","gists_url":"https://api.github.com/users/jameswyse/gists{/gist_id}","starred_url":"https://api.github.com/users/jameswyse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jameswyse/subscriptions","organizations_url":"https://api.github.com/users/jameswyse/orgs","repos_url":"https://api.github.com/users/jameswyse/repos","events_url":"https://api.github.com/users/jameswyse/events{/privacy}","received_events_url":"https://api.github.com/users/jameswyse/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-05-13T03:44:05Z","updated_at":"2016-09-26T14:26:46Z","closed_at":"2016-07-11T16:40:07Z","body":"I'm trying to create links using the `Anchor` component with the `Link` component from react-router. I read in the docs that the `tag` prop can be used for this:\r\n\r\n> The DOM tag to use for the element. The default is <a>. This should be used in conjunction with components like Link from React Router. In this case, Link controls the navigation while Anchor controls the styling.\r\n\r\nHowever I can't seem to get it working since `tag` is expecting a String and not another component. I tried `<Anchor tag=\"Link\">` but it attempted to render a stylesheet style `<link>` instead.\r\n> Uncaught Invariant Violation: link is a void element tag and must not have `children` or use `props.dangerouslySetInnerHTML`. Check the render method of Anchor.\r\n\r\nThere's also the issue of passing props (like `to`) to the Link tag. \r\n\r\nAny help appreciated!"},"comment":{"url":"https://api.github.com/repos/grommet/grommet/issues/comments/249585244","html_url":"https://github.com/grommet/grommet/issues/576#issuecomment-249585244","issue_url":"https://api.github.com/repos/grommet/grommet/issues/576","id":249585244,"user":{"login":"batjko","id":7287076,"avatar_url":"https://avatars.githubusercontent.com/u/7287076?v=3","gravatar_id":"","url":"https://api.github.com/users/batjko","html_url":"https://github.com/batjko","followers_url":"https://api.github.com/users/batjko/followers","following_url":"https://api.github.com/users/batjko/following{/other_user}","gists_url":"https://api.github.com/users/batjko/gists{/gist_id}","starred_url":"https://api.github.com/users/batjko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batjko/subscriptions","organizations_url":"https://api.github.com/users/batjko/orgs","repos_url":"https://api.github.com/users/batjko/repos","events_url":"https://api.github.com/users/batjko/events{/privacy}","received_events_url":"https://api.github.com/users/batjko/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T14:26:46Z","updated_at":"2016-09-26T14:26:46Z","body":"This should probably be changed in the Grommet docs then, so it doesn't explicitly point at the Link element as a use case anymore.\r\n\r\nBut is it not possible to just use the styling from the Anchor component, somehow?\r\nI am fairly new to React and React-Router and I'm not sure I want/need to create a separate component just for a link? "}}
{"actor":{"display_login":"batjko"}}