green6060/digicert-public-library-demo

component props and typescript

Opened this issue · 0 comments

this is where you should be defining const BookCard:React.FC = (props) => {....

as now the props will imply that they are of the bookcardproops type defined above and then you have the typescript implied properties on said objects and type safety