import React from 'react'
//import useState from 'react-dom';
import useState from 'react';
export const Tindercards = () => {
const [people, setPeople] = useState([
{
name: "Elon Musk",
url: "https://www.biography.com/.image/ar_1:1%2Cc_fill%2Ccs_srgb%2Cfl_progressive%2Cq_auto:good%2Cw_1200/MTc5OTk2ODUyMTMxNzM0ODcy/gettyimages-1229892983-square.jpg"
}
]);
return (
<>
<div className="tindercards">
</div>
</>
)
}
export default Tindercards;
Top comments (1)
useState is not a default export from 'react'.
Try changing your imports from this:
to this:
Or you can simply use
without needing to import
useState