so im in this parent component TransactionList
and i want to implement a function that modifies an existing transaction im not sure how to do this
TransactionList has two child components: Transaction, a component that individually displays each transaction on the list, and InputForm, the component that contains the form that creates the transaction in the first place
when the user wants to edit a transaction, they would click the "Edit" button inside one of the instances of the Transaction
component
and i was thinking the app would auto-fill the info of that instance in the sibling component, InputForm, and the user would make the edits there and press submit
but i feel like... this is quite complicated? because the instance of Transaction triggers a method in a sibling component, something i've never done before
and now InputForm, this child component would have 2 different things it'd emit; a new transaction and an edited one
this is all because i thought it would be too much work to build a new form to edit the transaction in the Transaction component, where the "edit" button would be triggered