EBEklal Budhathokiinblogs.ebudhathoki.com.np·Apr 28, 2024 · 1 min readGeneric 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...00