- Rename src/store/ -> src/context/ (store implies Redux, this is React Context) - Rename services/api.jsx -> api.js (file contains no JSX) - Delete unused Vite boilerplate: src/assets/, App.css - Update all imports accordingly
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import './index.css'
|
||||
import App from './App.jsx'
|
||||
import { CardProvider } from './store/CardContext' // <-- import your context provider
|
||||
import { CardProvider } from './context/CardContext'
|
||||
|
||||
createRoot(document.getElementById('root')).render(
|
||||
<StrictMode>
|
||||
|
||||
Reference in New Issue
Block a user