React Dependency Injection

added by JavaScript Kicks
11/17/2014 9:49:11 AM

148 Views

I love React.js. I find it to be a powerful tool for creating UI and revel in its immediate mode rendering model. Unforunately however, the dominant approach for writing React applications is use singletons at the module level.


1 comments

Robert Greyling
11/17/2014 9:51:52 AM
I really like this approach, I was also lamenting about all the reset code I had in my tests for this. Gonna give it a try and see how it goes. Looks very promising...