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