amanjagdev/react-builder

Need a delete button to remove added components

SneakySensei opened this issue · 2 comments

Currently, there's no way for the user to delete an added component.

If the user accidentally adds a component and then wants to remove it, the only way is to reload the app and start again. This is bad in bigger projects because the user will lose all their planning. A delete button beside every component is necessary.

The delete button can be a single SVG icon appended at the end of every component card.

I want to work on this issue. I'll create a new handler called handleDelete that will be executed from the onClick of a "trash" svg that would be present after the "page" checkbox.

@SneakySensei Yeah sure you may work on that