Remove React integration from Astro project#64
Open
shenanigansd wants to merge 2 commits into
Open
Conversation
React was leftover boilerplate from the Astro starter template and was never actually used — there are no .jsx/.tsx files and no react imports anywhere in src/. Auth0 is integrated via the framework-agnostic @auth0/auth0-spa-js SDK, so it does not depend on React. Remove react, react-dom, @types/react, @types/react-dom, and the @astrojs/react integration, along with the React JSX compiler options in tsconfig.json. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018nJ3HBkr7zXFNPG4SYrusA
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
letsbuilda-dev | 1d06e3b | Jun 17 2026, 07:22 PM |
Resolve dependency conflicts from the #63 dependency-group bump: keep main's non-React version bumps (@astrojs/cloudflare ^13.7.0, @auth0/auth0-spa-js ^2.21.1, and the devDependency bumps) while keeping React removed per this branch's purpose. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018nJ3HBkr7zXFNPG4SYrusA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR removes React as a dependency and integration from the Astro project, transitioning to a React-free setup.
Summary
The project has been refactored to remove all React-related dependencies and configurations. This includes removing the React integration from Astro, React type definitions, and JSX configuration.
Key changes
@astrojs/reactintegration fromastro.config.mjspackage.json@types/reactand@types/react-dom)tsconfig.json(jsxandjsxImportSourcesettings)Notes
@auth0/auth0-spa-jspackagehttps://claude.ai/code/session_018nJ3HBkr7zXFNPG4SYrusA