react-control-flow icon indicating copy to clipboard operation
react-control-flow copied to clipboard

feat: Introduce generics to make 'For' component props type-safe

Open rmn-kh opened this issue 2 years ago • 0 comments

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

Preview Of fix

rmn-kh avatar Mar 30 '24 19:03 rmn-kh