Skip to content

Commit

Permalink
Add client-side usage
Browse files Browse the repository at this point in the history
  • Loading branch information
revskill10 committed Dec 1, 2018
1 parent ab1242b commit 2431e08
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,19 @@ const customRoutes = require('./customRoutes')
routesMiddleware({server, app}, customRoutes)
```

## Usage with next/link and styled-components for client-side routing


```js
import Link from 'next/link'
import styled from 'styled-components'

const NavBarLink = styled.a`
text-decoration: none;
color: rgb(209, 72, 54);
`

<Link as={`/w/test`} href={`/work?slug=test`}>
<NavBarLink>WORK</NavBarLink>
</Link>
```

0 comments on commit 2431e08

Please sign in to comment.