0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-03 22:29:08 -05:00
astro/packages/renderers/renderer-react
github-actions[bot] f5ce6edb5b
[ci] release (#2372)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-14 14:40:12 -05:00
..
CHANGELOG.md [ci] release (#2372) 2022-01-14 14:40:12 -05:00
client.js
index.js [ci] yarn format 2022-01-13 18:29:57 +00:00
jsx-runtime.js [ci] yarn format 2022-01-13 18:29:57 +00:00
package.json [ci] release (#2372) 2022-01-14 14:40:12 -05:00
README.md
server.js
static-html.js

@astrojs/renderer-react

This is a plugin for Astro apps that enables server-side rendering of React components.

Installation

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

npm install @astrojs/renderer-react

astro.config.mjs

export default {
  // ...

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

Documentation

Astro Renderer Documentation