{"id":7977,"date":"2015-11-14T08:47:12","date_gmt":"2015-11-14T08:47:12","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/14\/how-to-use-normal-anchor-links-with-react-router-open-source-projects-rackt-react-router\/"},"modified":"2015-11-14T08:47:12","modified_gmt":"2015-11-14T08:47:12","slug":"how-to-use-normal-anchor-links-with-react-router-open-source-projects-rackt-react-router","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/14\/how-to-use-normal-anchor-links-with-react-router-open-source-projects-rackt-react-router\/","title":{"rendered":"How to use normal anchor links with react-router-open source projects rackt\/react-router"},"content":{"rendered":"<p>Very similar to this angular question: how do I use anchor links for in-page navigation when using react-router?<\/p>\n<p>In other words, how do I implement the following plain HTML when using react-router?<\/p>\n<pre><code>Question 1\nQuestion 2\nQuestion 3\n\n<\/code><\/pre>\n<h3 id=\"faq-1\"><code>Question 1<\/code><\/h3>\n<pre>\n<\/pre>\n<h3 id=\"faq-2\"><code>Question 2<\/code><\/h3>\n<pre>\n<\/pre>\n<h3 id=\"fa1-3\"><code>Question 3<\/code><\/h3>\n<pre>\n<\/pre>\n<p><code>Currently I intercept clicks on such links, and scroll to the anchor position. This isn't satisfactory, because it means it's impossible to link directly to some section of a page.<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Very similar to this angular question: how do I use anchor links for in-page navigation when using react-router? In other words, how do I implement the following plain HTML when using react-router? Question 1 Question 2 Question 3 Question 1 Question 2 Question 3 Currently I intercept clicks on such links, and scroll to the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7977","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7977","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7977"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7977\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7977"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7977"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}