2 ms·
React is awesome. This weekend, I rewrote the Khan Academy exercise editor which looks like this: https://s3.amazonaws.com/uploads.hipchat.com/6574/26709/htv8g
by spicyj 13y ago
React is awesome. This weekend, I rewrote the Khan Academy exercise editor which looks like this:
https://s3.amazonaws.com/uploads.hipchat.com/6574/26709/htv8gfr6iw0fzcd/upload.png https://s3.amazonaws.com/uploads.hipchat.com/6574/26709/htv8...
(The right side is a live preview of what's on the left. The editor is open-source https://github.com/Khan/perseus https://github.com/Khan/perseus but not yet documented, sorry.)
React made the code about 15% shorter and also made an order-of-magnitude improvement because it's smarter than I was being about figuring out what's changed and when it's necessary to touch the DOM. Of course, I could've made the same perf improvements by hand but it was easier and quicker having a library that just handles everything.
(This comment sounds a little like I'm getting paid to write this. I'm not! Just really hope that React takes off.)
- bigethan 13y agoWhat sort of environment are you using React in, and what process did it replace? (trying to get a better understanding of how it fits into the modern JS app world).