Skip to content

Commit 24175a2

Browse files
authored
Add manual react import (#63)
Attempt to fix github/spark#1066 This is an attempt to fix the missing `React` import, causing the error that `useContext` and `useEffect` can't be destructured from null
1 parent 70a8a5e commit 24175a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import React from 'react'
12
import { createRoot } from 'react-dom/client'
23
import App from './App.tsx'
34
import "./main.css"

0 commit comments

Comments
 (0)