martyjs / marty

A Javascript library for state management in React applications
http://martyjs.org
MIT License
1.09k stars 76 forks source link

this.app only available to immediate child of ApplicationContainer? #330

Closed ariddell closed 9 years ago

ariddell commented 9 years ago

I'm moving from 0.9 to 0.10 and I'm confused about how best to make app available to React Components which are children of ApplicationContainer but not the immediate children.

Clearly if one isn't using ES6 then the App mixin works fine. For those of us using ES6 classes should we just be wrapping any Component that uses this.app in a Container?

ariddell commented 9 years ago

Nevermind. I see that the pattern is indeed to put everything inside of Containers. Thanks!