3a4dc9e0a7
* First pass at supporting React 18 in @astrojs/react
* Try marking React 18’s `react-dom/client` as external
* Try a different approach to importing different React versions
* Allow resolving JSON modules
* Revert "Allow resolving JSON modules"
This reverts commit
|
||
---|---|---|
.. | ||
CHANGELOG.md | ||
client.js | ||
index.js | ||
jsx-runtime.js | ||
package.json | ||
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'
]
}