Note: React Router currently does not manage scroll position, and will not scroll to the element corresponding to the hash. state: State to persist to the location.Īn object of key:value pairs to be stringified.query: An object of key:value pairs to be stringified.pathname: A string representing the path to link to.If it's an object it can have four keys:.users/123 (relative paths are not supported). If it's a string it represents the absolute path to link to, e.g.Usually this is a string or an object, with the following semantics: To have the link be active only on the exact linked route, use instead or set the onlyActiveOnIndex prop. The will be active if the current route is either the linked route or any descendant of the linked route. will render a fully accessible anchor tag with the proper href.Ī can know when the route it links to is active and automatically apply an activeClassName and/or activeStyle when given either prop. The primary way to allow users to navigate around your application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |