hypermod-community icon indicating copy to clipboard operation
hypermod-community copied to clipboard

[docs] Update the "remove props" example

Open alexfauquette opened this issue 2 years ago • 2 comments

The remove prop example suffers one issue: nested components

If you have two nested components with the same prop it will be removed to both of them.

For example

<A prop="test">
  <B prop="test2" />
</A>

Using the example to remove prop from <A /> Will also remove it from <B /> because find also cover the nested elements

alexfauquette avatar Jan 25 '23 09:01 alexfauquette

BTW, if you need any integration help or codemods for MUI, feel free to reach out to me on Twitter or Discord I'd love to collaborate with you folks!

danieldelcore avatar Jan 27 '23 00:01 danieldelcore

BTW, if you need any integration help or codemods for MUI, feel free to reach out to me on Twitter or Discord I'd love to collaborate with you folks!

Thanks, I just finished writing the codemods for v5 to v6 migration for pickers. I transmitted your interest to the rest of the team :)

alexfauquette avatar Jan 27 '23 10:01 alexfauquette