refactor your react component easilysuppose u have original:
comp:
use this properties:
u will get result:
🔸 commands
open new file to setup what to replace
find component to replace
to replace component 🔸 settingsseparated with @@@ for each items eg. src=mysrc@@@test=className="x
🔸 excludefile to be excluded from search eg f=test.jsx
🔸 compcomponent to be replaced with eg. <Comp someprop="xyz"></Comp> 🔸 comp-to-replacecomponent to be replaced eg. <Comp someprop="xyz"></Comp> 🔸 defaulta default property |key| item | |--|--| | property-choices | property default. whose component property to use for replaced compoent? 0 for original, 1 for comp, 2 for component-to-rep lace 🔸 propertiesproperty list that will be included in the replaced component. there also speacial property 'children'. if property in original component not included there that property will follow rule default: property-choices. special selector:
function:
refer to other property suppose u have original:
properties: meh=3b //select Child's property:b anyprop=4c //select SecondChild's property:c yo=0a //select Original's property:a a=- //remove a from component b={(v)=>false} //add new property children=1 //use comp's children property hola=4:quot:children u will get result:
|