Eklal Budhathokiblogs.ebudhathoki.com.npยทApr 28, 2024Generic Reusable Component ReactGeneric types are use mainly to create reusable components with type-safety. First, lets create a simple component first. import React from 'react' type TSelectOptions = { label: string, value: string } type TSelectProps = { options: TSelectOptions...TypeScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.