title: How to implement navigation controller/tab bar controller in React/Flux?
body: <p>I'm creating a SPA mobile app using React. I'm wondering how I would create a navigation controller or a tab bar controller using the Flux way. Basically I'm wondering how I handle ownership of children and who/what handles the actual transitions.</p>
  
  <p>Right now I have a navigationController component that has a <code>push</code> method to add pages to the stack and transition them in our out. All of this is stored in the state, and the parent component knows nothing about this.</p>
  
  <p>For my tab bar controller, the parent component passes in some tabBar items with the children of the tabBar item being the content to show when the tab is active. The tab bar controller handles when a tab is active and what content to show based on the active tab. The parent doesn't know anything about which tab is active. the active tab is stored in the tab bar controller's state.</p>
  
  <p>Stuff like this just doesn't seem to be easily implemented in Flux. How would I, from the parent, tell a navigation controller to add an element, and then handle the transition from within controller. Also, how would added pages to the controller be able to push new pages if they have to go all the way up to the root?</p>
  
  <p>I guess my problem might be that I don't fully understand Flux.</p>
  
  <p>Any help would be greatly appreciated.</p>