Skip to content

Not compatible with React 19 #198

Description

@RomanHotsiy

This lib relies on defaultProps (e.g. here: https://github.com/schiehll/react-alert/blob/master/src/Provider.js#L197-L206) and

In React 19, the defaultProps static property for function components has been removed in favor of ES6 default parameters. This change aims to align React with modern JavaScript practices and simplify component definitions.

Without defaultProps, the usage example from the README doesn't work (the one without explicit context) because the context is undefined here: https://github.com/schiehll/react-alert/blob/master/src/Provider.js#L139

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions