1.Used React.FC for component typing.
2.Removed unnecessary type (any) from the handleChange function argument.
3.Added ChangeEvent import for better type checking.
4.Added a form-control class to the input for improved styling flexibility.
5.Improved indentation and formatting for better readability.
Changes made:
Added TypeScript type definitions for props.
1.Used React.FC for component typing. 2.Removed unnecessary type (any) from the handleChange function argument. 3.Added ChangeEvent import for better type checking. 4.Added a form-control class to the input for improved styling flexibility. 5.Improved indentation and formatting for better readability.