rewriting table to use react table

Hi! I have my current table but I wonder if its possible to make it work with react table. Im mostly concerned about one part because currently I have a little small icon that let user add Item to favorites (i use trpc to handle that on click)
Tbody
Items.map(Item => (<ItemComponent Item={item}/>)
Tbody
Tbody
Items.map(Item => (<ItemComponent Item={item}/>)
Tbody
Then inside this Item Component I handle the adding / removing stuff. But from what I see react table doesnt work that way so I wonder how should I approach this... will post links to github code in comment below.
1 Reply
noctate
noctateOP2y ago
GitHub
cryptosito/CryptoTable.tsx at main · Infiplaya/cryptosito
coinmarket clone. Contribute to Infiplaya/cryptosito development by creating an account on GitHub.
GitHub
cryptosito/CoinItem.tsx at main · Infiplaya/cryptosito
coinmarket clone. Contribute to Infiplaya/cryptosito development by creating an account on GitHub.
Want results from more Discord servers?
Add your server