Move MenuItem's primaryText into its children

Proprietary

Turns <MenuItem primaryText="x" /> into <MenuItem>x</MenuItem>. Only a self-closing MenuItem is changed.

org.openrewrite.react.mui.move-primary-text-to-children

Optional

The package the component is imported from, when it is not one of Material UI's.

mod run . --recipe=org.openrewrite.react.mui.move-primary-text-to-children

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.