I – A Pinch of TypeScript
These last changes aren’t really needed but make it easier to use the component inside other code components.Why add TypeScript?Type enforcement Optional and required properties Code completion What’s that extra code?Partial Type annotations An alternative notationWhy add TypeScript?After adding some TypeScript code, we’ll arrive at this final version, which still looks and works the same: […]