Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I highly recommend taking a look at react's immutability helper update[0] for these kinds of operations. Keeps your data structure persistent and intelligently re-uses internal objects when possible.

0. http://facebook.github.io/react/docs/update.html



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: