Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/routes/(2)guides/(2)routing-and-navigation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,11 @@ render(

**6. Create links to your routes**

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

```jsx
import { render } from "solid-js/web";
import { Router, Route, A } from "@solidjs/router";
import { Router, Route } from "@solidjs/router";

import Home from "./pages/Home";
import Users from "./pages/Users";
Expand All @@ -141,8 +139,8 @@ import NotFound from "./pages/NotFound";
const App = (props) => (
<>
<nav>
<A href="/">Home</A>
<A href="/users">Users</A>
<a href="/">Home</a>
<a href="/users">Users</a>
</nav>
<h1>Site Title</h1>
{props.children}
Expand Down
Loading