mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
1634172ff9
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> |
||
---|---|---|
.. | ||
compat | ||
CHANGELOG.md | ||
client.js | ||
index.js | ||
package.json | ||
README.md | ||
server.js | ||
static-html.js |
@astrojs/renderer-preact
This is a plugin for 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
export default {
// ...
renderers: [
// ...
'@astrojs/renderer-preact'
]
}