Skip to content

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

@Prince-Csaba

Description

@Prince-Csaba

Dear Team,

First of all, thank you for the great work, this Calendar Datepicker is beautiful and super useful.

However, I'm getting the below error on the console. Could you please let me know more about this? Will this have an effects on the calendar functionalities or it will work as before?

Are you planning to solve this issue? Also, I would like to offer my assistance if I can help with this.

Thank you.

The error:
Warning: F: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
at F (webpack-internal:///(ssr)/./node_modules/@hassanmojab/react-modern-calendar-datepicker/lib/index.js:858:15)

Warning: W: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
at W (webpack-internal:///(ssr)/./node_modules/@hassanmojab/react-modern-calendar-datepicker/lib/index.js:681:15)

Warning: B: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
at B (webpack-internal:///(ssr)/./node_modules/@hassanmojab/react-modern-calendar-datepicker/lib/index.js:681:15)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions