summaryrefslogtreecommitdiff
path: root/packages/renderers/renderer-preact/README.md
blob: eba2e0db884e46bf1fc41d324993eedbc51e1cd0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# @astrojs/renderer-preact

This is a plugin for [Astro][astro] apps that enables server-side rendering of Preact components.

## Installation

Install `@astrojs/renderer-preact` and then add it to your `astro.config.mjs` in the `renderers` property:

```
npm install @astrojs/renderer-preact
```

__astro.config.mjs__

```js
export default {
  // ...

  renderers: [
    // ...
    '@astrojs/renderer-preact'
  ]
}
```

## Documentation

[Astro Renderer Documentation][renderer-docs]

[astro]: https://astro.build
[renderer-docs]: https://docs.astro.build/reference/renderer-reference