#How do I remove the React integration?
3 messages · Page 1 of 1 (latest)
Hi @wooden walrus. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
To remove the React integration from your Astro project, you need to follow these steps:
-
Uninstall the integration from your project. Depending on your package manager, you can use one of the following commands:
For npm:
npm uninstall @astrojs/reactFor pnpm:
pnpm uninstall @astrojs/reactFor Yarn:
yarn remove @astrojs/react -
Remove the integration from your
astro.config.*file. If you have added the React integration to this file, you should remove it. Here's an example of how yourastro.config.mjsfile might look like:import { defineConfig } from 'astro/config' import react from "@astrojs/react"; export default defineConfig({ integrations: [ react() ]})In this case, you should remove the line
import react from "@astrojs/react";andreact()from theintegrationsarray.
Please note that these instructions are based on the information provided in the Astro documentation (https://docs.astro.build/en/guides/integrations-guide/).