Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation of defaultProps #172

Open
apartx opened this issue Oct 18, 2024 · 1 comment
Open

Deprecation of defaultProps #172

apartx opened this issue Oct 18, 2024 · 1 comment

Comments

@apartx
Copy link

apartx commented Oct 18, 2024

React deprecating defaultProps and says that it need to use default JS features:

Снимок экрана 2024-10-18 в 13 44 46

I guess like this:

...
render() {
    const {
      children,
      which = element => get(element, 'type.__name') === 'CacheRoute',
      autoFreeze
    } = this.props
    ...
}
@apartx
Copy link
Author

apartx commented Oct 18, 2024

Created PR #173

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

No branches or pull requests

1 participant