@astrojs/react
Advanced tools
Comparing version 1.2.1 to 1.2.2
# @astrojs/react | ||
## 1.2.2 | ||
### Patch Changes | ||
- [#5218](https://github.com/withastro/astro/pull/5218) [`0b1241431`](https://github.com/withastro/astro/commit/0b12414315fa81ded96587779c63c74400466078) Thanks [@MoustaphaDev](https://github.com/MoustaphaDev)! - remove unnecessary `ReactDOM.renderToString` operation | ||
## 1.2.1 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@astrojs/react", | ||
"description": "Use React components within Astro", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"type": "module", | ||
@@ -38,3 +38,3 @@ "types": "./dist/index.d.ts", | ||
"@types/react-dom": "^17.0.17", | ||
"astro": "1.5.1", | ||
"astro": "1.6.1", | ||
"astro-scripts": "0.0.8", | ||
@@ -41,0 +41,0 @@ "react": "^18.1.0", |
@@ -78,3 +78,2 @@ import React from 'react'; | ||
if (metadata && metadata.hydrate) { | ||
html = ReactDOM.renderToString(vnode); | ||
if ('renderToReadableStream' in ReactDOM) { | ||
@@ -81,0 +80,0 @@ html = await renderToReadableStreamAsync(vnode); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30692
471