I tried looking for resetting useState
array values in here but could not find any references to array values.
Trying to change the drop down value from ini
use state is not always needed you can just simply do this
let paymentList = [
{"id":249,"txnid":"2","fname":"Rigoberto"}, {"id":249,"txnid":"33","fname":"manuel"},]
then use your data in a map loop like this in my case it was just a table and im sure many of you are looking for the same. here is how you use it.
Transaction ID
Name
{
paymentList.map((payment, key) => (
{payment.txnid}
{payment.fname}
))
}