Skip to content

Commit 81f41ea

Browse files
authored
docs: update navigation links to use native anchor tags
Replaced the <A> component with native anchor tags for navigation, removed conflicting description.
1 parent cd6b967 commit 81f41ea

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/routes/(2)guides/(2)routing-and-navigation.mdx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,11 @@ render(
126126

127127
**6. Create links to your routes**
128128

129-
The [`<A>`](/solid-router/reference/components/a) component provides navigation to an application's routes.
130-
Alternatively, you can use the [native anchor tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a).
131-
However, the `<A>` component provides additional functionality including properties for CSS, `inactiveClass` and `activeClass`.
129+
The [native anchor tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a) provides soft navigation to an application's routes.
132130

133131
```jsx
134132
import { render } from "solid-js/web";
135-
import { Router, Route, A } from "@solidjs/router";
133+
import { Router, Route } from "@solidjs/router";
136134

137135
import Home from "./pages/Home";
138136
import Users from "./pages/Users";
@@ -141,8 +139,8 @@ import NotFound from "./pages/NotFound";
141139
const App = (props) => (
142140
<>
143141
<nav>
144-
<A href="/">Home</A>
145-
<A href="/users">Users</A>
142+
<a href="/">Home</a>
143+
<a href="/users">Users</a>
146144
</nav>
147145
<h1>Site Title</h1>
148146
{props.children}

0 commit comments

Comments
 (0)