Skip to content

Warning: Mention: Support for defaultProps will be removed from function components in a future major release #774

@Oskar-Andersson

Description

@Oskar-Andersson

When used with react 18 (the component works like intended), I receive the following error in my console on site initial load:

Warning: Mention: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. Component Stack: 
Mention react-mentions.esm.js:2120

I struggle to comprehend that I am the only one that has this to report, and yet, I can't find any previous reporters mentioning this issue... I am still worried that I have done something to provoke this, but after failing to understand how that could happen, I resort to posting here!

My question is - do you have any tricks for me, or are you working on a new release w/o defaultProps, or do you recommend any alternative?

My environment:
React: 18.3.1
React-mentions: 4.4.10

Browser: FF for developers 136.0b7

Please advice,
Oskar Andersson

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions