Open Steven-Chan opened 1 year ago
Yes, it is deprecated in version 18. However, major frameworks are not React 18 ready. People are still using React 17. The type definition of non-VFC types is problematic because it unconditionally allow children
prop even the component does not support it.
https://github.com/DefinitelyTyped/DefinitelyTyped/commit/8ce24999967467fd6cae8639fde57697a13212a9