0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-03 22:29:08 -05:00
astro/packages/renderers/renderer-preact
github-actions[bot] c16e7f3433
chore: release (#2171)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-09 10:45:03 -08:00
..
compat [ci] yarn format 2021-10-29 19:47:01 +00:00
CHANGELOG.md chore: release (#2171) 2021-12-09 10:45:03 -08:00
client.js fix: renderer behavior with no children (#2078) 2021-12-02 10:30:15 -06:00
index.js
package.json chore: release (#2171) 2021-12-09 10:45:03 -08:00
README.md
server.js fix: renderer behavior with no children (#2078) 2021-12-02 10:30:15 -06:00
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'
  ]
}

Documentation

Astro Renderer Documentation