0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00
astro/packages/renderers/renderer-react
github-actions[bot] b8e3efa7bb
[ci] release (#2219)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-23 11:49:30 -05:00
..
CHANGELOG.md [ci] release (#2219) 2021-12-23 11:49:30 -05:00
client.js
index.js
package.json [ci] release (#2219) 2021-12-23 11:49:30 -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