Problem Statement
Sometimes as a result of refactoring some components end up becoming very naïve - containing only a line or two of markup and nothing else. In these situations, it's useful to reduce the complexity by eliminating these components.
Feature Request
To help with eliminating these naïve components, it'll be great to have a mechanism to:
- automatically replace the references of this component with the markup from that component
- remove the component as it's not used any more
Here what it would like before and after applying the fix:
Before
Component1.razor
<div class="row">
<Component2 />
</div>
Component2.razor
<div class="customText">
This is some static content
</div>
After
Component1.razor
<div class="row">
<div class="customText">
This is some static content
</div>
</div>
Component2.razor - Deleted
Problem Statement
Sometimes as a result of refactoring some components end up becoming very naïve - containing only a line or two of markup and nothing else. In these situations, it's useful to reduce the complexity by eliminating these components.
Feature Request
To help with eliminating these
naïvecomponents, it'll be great to have a mechanism to:Here what it would like before and after applying the fix:
Before
Component1.razor
Component2.razor
After
Component1.razor
Component2.razor - Deleted