Skip to content

Commit

Permalink
docs: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed May 16, 2024
1 parent 3d781ee commit 924f732
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/components/UseVikeExtension.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function UseVikeExtensionUiFramework({ featureName }: { featureName: string }) {
<blockquote>
<p>
Instead of manually integrating {featureName} yourself, you can use a <UiFrameworkVikeExtension /> which already
integrates {featureName}. You can use <Bati /> to scaffold an app that uses <UiFrameworkVikeExtensionNames />.
integrates {featureName}. And you can use <Bati /> to scaffold an app that uses <UiFrameworkVikeExtensionNames />.
</p>
</blockquote>
)
Expand Down
14 changes: 2 additions & 12 deletions docs/pages/clientRouting/+Page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,7 @@ Environment: client.

If you don't use a <UiFrameworkVikeExtension /> then Vike does <Link text="Server Routing" href="/server-routing" /> by default.

You can opt into <Link text="Client Routing" href="/client-routing" /> by:
1. Setting `clientRouting: true`.
```js
// +config.js
export default {
// Enable Client Routing
clientRouting: true
}
```
2. Adapting your <Link text={<><code>onRenderClient()</code> hook</>} href="/onRenderClient" /> to
hydrate the DOM only when rendering the first page.
You can opt into <Link text="Client Routing" href="/client-routing" /> by using the `clientRouting` setting, see <Link href="#getting-started" />.

<UseVikeExtensionUiFramework featureName="Client Routing" />

Expand All @@ -30,7 +20,7 @@ Vue example:
- <RepoLink path='/boilerplates/boilerplate-vue-ts/renderer/app.ts' />


## Usage
## Getting started

1. Set `clientRouting` to `true`:
```js
Expand Down

0 comments on commit 924f732

Please sign in to comment.