Skip to content

Conversation

nicodes
Copy link
Collaborator

@nicodes nicodes commented Jun 9, 2025

Attempt to fix https://github.com/github/spark/issues/1066

This is an attempt to fix the missing React import, causing the error that useContext and useEffect can't be destructured from null

@Copilot Copilot AI review requested due to automatic review settings June 9, 2025 19:06
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces an explicit React import in the application entry point.

  • Adds import React from 'react' to src/main.tsx to ensure React is available for JSX compilation.
Comments suppressed due to low confidence (1)

src/main.tsx:1

  • [nitpick] The React import appears to be unused as the new JSX transform doesn't require explicit React imports. Consider removing this import to reduce unnecessary code.
import React from 'react'

@nicodes nicodes merged commit 24175a2 into main Jun 9, 2025
3 checks passed
@nicodes nicodes deleted the nicodes/add-react-import branch June 9, 2025 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants