Including version
in @wordpress/element
#49308
Labels
[Package] Element
/packages/element
[Status] In Progress
Tracking issues with work in progress
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
With WordPress 6.2, React 18 will come bundled with WordPress, and for the time being a lot of us will have to support both React 17 and 18 in our themes and plugins. It would be really nice if
version
from React came bundled inside@wordpress/element
for an easier verbose check when mounting your React app.Without
version
coming fromelement
:What is your proposed solution?
Include
version
in the import from React in@wordpress/element
Props to @ryanwelcher and @dgwyer for helping me think through this on Twitter :)
The text was updated successfully, but these errors were encountered: