14 lines
458 B
TypeScript
Raw Normal View History

2025-01-05 23:55:22 -05:00
import { useState } from "react";
2025-01-06 23:01:01 -05:00
import { sampleCard1, sampleCard2, sampleCard3 } from "../sampleData.ts";
2024-12-29 23:00:38 -05:00
import { Card } from "./Card.tsx";
export const App = () => {
2025-01-05 23:55:22 -05:00
const [count, setCount] = useState(0);
2025-01-06 22:28:57 -05:00
return <div>
<Card key={`1-${count}`} card={sampleCard1}/>
<Card key={`2-${count}`} card={sampleCard2}/>
2025-01-06 23:01:01 -05:00
<Card key={`3-${count}`} card={sampleCard3}/>
2025-01-06 22:28:57 -05:00
<button onClick={() => {setCount(c => c+1)}}>Rerender (for fonts)</button>
</div>;
2024-12-29 23:00:38 -05:00
};