taniarascia / comments

Comments
7 stars 0 forks source link

content-editable-elements-in-javascript-react/ #56

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Using Content Editable Elements in JavaScript (React) | Tania Rascia

Any element can be made editable with the addition of the attribute. This attribute is used all over the web, such as in Google Sheets. I'm…

https://www.taniarascia.com/content-editable-elements-in-javascript-react/

gandhirahul commented 3 years ago

Found it helpful, Thanks!

dschoorl commented 3 years ago

Did they copy your article here: https://www.pluralsight.com/guides/how-to-use-contenteditable-elements-in-a-react-app?

thatguyfig commented 2 years ago

Cheers for the tutorial I noticed a bug though at the end, if you update an existing row, it updates the one above instead. To fix this you need to add the below to line 111

return item.id === parseInt(row, 10) + 1

The other option is to start counting IDs for the store state from 0 instead.

tanmaykaushik451 commented 1 year ago

Great article! Thanks!