This PR addresses the issue reported in #128, where a warning is displayed for using defaultProps in function components. The warning indicates that support for defaultProps will be removed in future major React releases.
Issue was this
Changes:
Replaced the defaultProps with JavaScript default parameters in the function signature of the Step functional component.
Ensured proper initialization of default values without altering the component's existing functionality.
Notes:
The functionality and behavior of the component remain unchanged.
This is a refactor aimed at future-proofing the codebase and resolving the deprecation warning.
Thorough testing has been conducted to confirm that the component behaves as expected after the update.
This refactor ensures compatibility with upcoming React updates while addressing the reported issue.
This PR addresses the issue reported in #128, where a warning is displayed for using
defaultProps
in function components. The warning indicates that support fordefaultProps
will be removed in future major React releases.Issue was this
Changes:
Notes:
This refactor ensures compatibility with upcoming React updates while addressing the reported issue.