Adel Benyahia
Jan 14, 2023

--

Great article
, Thanks for sharing πŸ‘
I will suggest adding proptypes and default values.

Button.propTypes = {
disabled: PropTypes.bool,
label: PropTypes.label,
handleClick: PropTypes.func
};
Button.defaultProps = {
disabled: false,
Label: "default label",
};

--

--

Adel Benyahia

Web application developer (HTML β”‚ CSS β”‚ JS | ReactJS | NextJS | NestJS | MERN)