I'm getting this error saying my named export doesn't match my module name.. but it does. I have no idea why I can't load my component. Anyone see what I'm doing wrong?
App.jsx:
import './App.css'
import { CardFront } from './components/CardFront'
import { CardBack } from './components/CardBack'
function App() {
return (
<>
<div>
<h1>project</h1>
<CardFront />
<CardBack />
</div>
</>
)
}
export default App
CardFront.jsx:
import React from "react"
import card_front from "../assets/card_front.png"
export default function CardFront(){
return(
<img src="card_front">
<h3>pinyin</h3>
<h3>traditional character</h3>
</img>
)
}
CardBack.jsx:
import React from "react"
import card_back from "../assets/card_back.png"
export default function CardBack(){
return(
<img src="card_back">
<h3>English def</h3>
</img>
)
}