diff options
Diffstat (limited to 'examples/framework-react')
-rw-r--r-- | examples/framework-react/astro.config.mjs | 5 | ||||
-rw-r--r-- | examples/framework-react/package.json | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/examples/framework-react/astro.config.mjs b/examples/framework-react/astro.config.mjs index b35ad27e9..4b5a68ec0 100644 --- a/examples/framework-react/astro.config.mjs +++ b/examples/framework-react/astro.config.mjs @@ -1,7 +1,8 @@ import { defineConfig } from 'astro/config'; +import react from '@astrojs/react'; // https://astro.build/config export default defineConfig({ - // Enable the React renderer to support React JSX components. - renderers: ['@astrojs/renderer-react'], + // Enable React to support React JSX components. + integrations: [react()], }); diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 399246155..f0d36db78 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/renderer-react": "^0.5.0", + "@astrojs/react": "^0.0.1", "astro": "^0.24.3" } } |