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