react-control-flow
react-control-flow copied to clipboard
feat: Introduce generics to make 'For' component props type-safe
Checklist for a PR
-
[x] New feature (non-breaking change which adds functionality)
-
[x] Covered documentation update for this feature / issue
What is the feature / fix
Adding generics to the 'For' component in the repository. Generics are a feature of TypeScript (and some other programming languages) that allow you to define reusable components or functions with dynamic types. In this case, adding generics to the 'For' component enables developers to specify the type of data that the component will iterate over, thereby enhancing type safety and providing better type checking support during development. This feature improves the robustness and maintainability of the codebase by reducing the risk of runtime errors related to type mismatches.
Github Feature/Issue
#6