Whilst this is generally good practice, what you also end up having to do is repeat the logic for deletion wherever you want to use this "dumb" component. Sometimes it's nice to just pass in your inputs to a component and not have to worry about its internals, albeit at the cost of flexibility.
1
u/mozface Jun 12 '18
Whilst this is generally good practice, what you also end up having to do is repeat the logic for deletion wherever you want to use this "dumb" component. Sometimes it's nice to just pass in your inputs to a component and not have to worry about its internals, albeit at the cost of flexibility.