4 ms·
Data passed to the controller view should be state from stores, not props. read the docs plz.
by piran 12y ago
Data passed to the controller view should be state from stores, not props. read the docs plz.
- aeflash 12y agoThat's only true if you're following the canonical Flux architecture to the letter. There's little difference between having your store trigger setState() on a root component and having your store trigger React.render(<RootComponent/>) with new props.
- ramblerman 12y agoIf anything the docs reiterate (quite a few times) that this is one way, and not a golden bullet. And that flux is just one of the architectures you can use with react. But you certainly get the award for least imagination.