{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/862","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/862/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/862/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/862/events","html_url":"https://github.com/ant-design/ant-design/issues/862","id":126372505,"number":862,"title":"Tag 组件与 react-router Link 兼容性：<a> cannot appear as a descendant of <a>.","user":{"login":"Carrotzpc","id":10265417,"avatar_url":"https://avatars.githubusercontent.com/u/10265417?v=3","gravatar_id":"","url":"https://api.github.com/users/Carrotzpc","html_url":"https://github.com/Carrotzpc","followers_url":"https://api.github.com/users/Carrotzpc/followers","following_url":"https://api.github.com/users/Carrotzpc/following{/other_user}","gists_url":"https://api.github.com/users/Carrotzpc/gists{/gist_id}","starred_url":"https://api.github.com/users/Carrotzpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carrotzpc/subscriptions","organizations_url":"https://api.github.com/users/Carrotzpc/orgs","repos_url":"https://api.github.com/users/Carrotzpc/repos","events_url":"https://api.github.com/users/Carrotzpc/events{/privacy}","received_events_url":"https://api.github.com/users/Carrotzpc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-13T09:07:14Z","updated_at":"2016-01-13T10:10:08Z","closed_at":null,"body":"**问题描述**\r\n实际使用时发现在 Link 中使用 Tag 组件会有一个警告 `Warning: validateDOMNesting(...): <a> cannot appear as a descendant of <a>. See Hello > a > ... > AntTag > a.`，个人建议将 Tag 组件的 `href` 属性剔除，让它安安静静做一个 Tag ，或者根据有无`href`属性，决定是否使用 `<a>`。\r\n\r\n**线上重现演示**\r\n未使用 Link ，只是将 Tag 放在了 `<a>` 中\r\nhttp://jsfiddle.net/rjnebgex/"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/171240964","html_url":"https://github.com/ant-design/ant-design/issues/862#issuecomment-171240964","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/862","id":171240964,"user":{"login":"Carrotzpc","id":10265417,"avatar_url":"https://avatars.githubusercontent.com/u/10265417?v=3","gravatar_id":"","url":"https://api.github.com/users/Carrotzpc","html_url":"https://github.com/Carrotzpc","followers_url":"https://api.github.com/users/Carrotzpc/followers","following_url":"https://api.github.com/users/Carrotzpc/following{/other_user}","gists_url":"https://api.github.com/users/Carrotzpc/gists{/gist_id}","starred_url":"https://api.github.com/users/Carrotzpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carrotzpc/subscriptions","organizations_url":"https://api.github.com/users/Carrotzpc/orgs","repos_url":"https://api.github.com/users/Carrotzpc/repos","events_url":"https://api.github.com/users/Carrotzpc/events{/privacy}","received_events_url":"https://api.github.com/users/Carrotzpc/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T10:10:08Z","updated_at":"2016-01-13T10:10:08Z","body":"好，下班回去尝试来个 PR  :smiley: "}}