Re:React Tips and Best Practices
by piran on Monday February 23, 2015 @03:05PM
(#9096646)
Data passed to the controller view should be state from stores, not props. read the docs plz.
[ Parent
| on HN ]
That'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.
Re:React Tips and Best Practices
by ramblerman on Tuesday February 24, 2015 @08:19AM
(#9100314)
If 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.