This is my first time using the prop-types library.
This is my error message.
- Binding element 'name' implicitly has an 'any' type.
- Binding element 'email' implicitly has an 'any' type.
- Binding element 'gender' implicitly has an 'any' type.
This is my code.
import PropTypes from "prop-types";
export default function Row({ name, email, gender }) {
return (
<>
<p>{name}</p>
<p>{email}</p>
<p>{gender}</p>
</>
);
}
Row.propTypes = {
name: PropTypes.string,
email: PropTypes.string,
gender: PropTypes.string,
};
I think there is not wrong part. I need you help how can i fix my error without 'interface' or 'type'.