Use Component to populate an interface
I am working on a project (React + TS) that accepts an “uncalled” component (in the example below, I’m using SimpleCard
), does some stuff behind the scenes (removed from the example for simplicity), and then renders the card component in a grid (using CardGrid
below).