News for hackers. Stuff that matters.
Re:React JS Best Practices by rattray on Saturday May 09, 2015 @03:37AM (#9515806)
Great article, thanks for sharing! Would have loved a few code samples to go along but your descriptions did an impressive job describing what's going on.

One question: what does that "global Backbone cache" look like?

Re:React JS Best Practices by lopatin on Saturday May 09, 2015 @01:27PM (#9516997)
Thanks! Glad to hear it was easy to follow and didn't ramble. Our backbone model cache is a simple module that you request backbone model instances from by a unique key. You also pass initialization options in case it doesn't exist in the cache. The instance will be constructed, saved in the cache, and returned. You can pass a TTL also. It's not great, feels clunky, but it works.