jcmcneal / react-step-wizard

A modern flexible step wizard component built for React.
MIT License
583 stars 126 forks source link

Support for default props is almost deprecated. #128

Open kirexp opened 1 year ago

kirexp commented 1 year ago

Apparently default props will be depreciated soon therefore need some changes in this library. wondering if someone has had the same issue and got fix ready? Otherwise what is the policy with contribution?

image
bohdan-heiko-cpart commented 9 months ago

got same warning in devtools

supertick commented 5 months ago

Same Warning: y: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

Great project by the way ! .. Thanks

cepreu90 commented 3 months ago

@jcmcneal Hey mate. We are a few waiting for the the default props issue to be fixed. Are you or anyone looking into this? - I got a PR ready if needed.

jcmcneal commented 3 months ago

Sorry to leave everyone hanging. This library never got the community support I need to share the load so I don't get much time to update it very often.

That being said, I have decided to do a major refactor in typescript which is underway. I can't promise any timelines, but I'd love to resolve all the open issues as possible along the way. Would you like your PR merged in the meantime?

cepreu90 commented 3 months ago

No worries. Sounds good with the ts version. If you add me I'll push it and make a pull request. It's a small fix where I just added the default props as default params instead.