0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages/renderers/renderer-react
Matthew Phillips 20eaddb2a7
Fix for using React in the static build (#2369)
* Fix react in the static build

* Adds a changeset
2022-01-13 13:28:29 -05:00
..
CHANGELOG.md [ci] release (#2219) 2021-12-23 11:49:30 -05:00
client.js Use accessible indentation (#2253) 2021-12-22 16:11:05 -05:00
index.js Fix for using React in the static build (#2369) 2022-01-13 13:28:29 -05:00
jsx-runtime.js Fix for using React in the static build (#2369) 2022-01-13 13:28:29 -05:00
package.json Fix for using React in the static build (#2369) 2022-01-13 13:28:29 -05:00
README.md Docs: Add READMEs for renderers (#1351) 2021-09-14 16:26:23 -07:00
server.js Use accessible indentation (#2253) 2021-12-22 16:11:05 -05:00
static-html.js Use accessible indentation (#2253) 2021-12-22 16:11:05 -05:00

@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