React 18.3.0/19.0.0 support for react-markdown ^6.0.0
janpe opened this issue · 2 comments
janpe commented
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and couldn’t find anything (or linked relevant results below)
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.
wooorm commented
Hey! Use v9.
It’s time to use ESM. You can upgrade your tools to support it.
github-actions commented
Hi! This was closed. Team: If this was fixed, please add phase/solved
. Otherwise, please add one of the no/*
labels.