remarkjs/react-markdown

React 18.3.0/19.0.0 support for react-markdown ^6.0.0

janpe opened this issue · 2 comments

Initial checklist

Problem

React 18.3.0 gives deprecation warnings for defaultProps usage still present in v6. This would be needed for users that are unable to support pure ESM at this point.

Solution

Remove defaultProps usage in v6 and publish a new release with the changes.

Alternatives

Without this change users are unable to move to React 19 with react-markdown if they need to support commonjs.

Hey! Use v9.

It’s time to use ESM. You can upgrade your tools to support it.

Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.