draw types

This commit is contained in:
Dylan Pizzo
2025-01-06 23:01:01 -05:00
parent 9cef34b976
commit b0249f8baf
4 changed files with 72 additions and 8 deletions

View File

@ -1,5 +1,5 @@
import { useState } from "react";
import { sampleCard1, sampleCard2 } from "../sampleData.ts";
import { sampleCard1, sampleCard2, sampleCard3 } from "../sampleData.ts";
import { Card } from "./Card.tsx";
export const App = () => {
@ -7,6 +7,7 @@ export const App = () => {
return <div>
<Card key={`1-${count}`} card={sampleCard1}/>
<Card key={`2-${count}`} card={sampleCard2}/>
<Card key={`3-${count}`} card={sampleCard3}/>
<button onClick={() => {setCount(c => c+1)}}>Rerender (for fonts)</button>
</div>;
};