Skip to content

Conversation

@AsjidAle
Copy link

@AsjidAle AsjidAle commented Dec 1, 2024

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
image

Changes:

  1. Replaced the defaultProps with JavaScript default parameters in the function signature of the Step functional component.
  2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant