RxJS / React and best way to share state between seperate components (w/o flux) -
so, thinking of creating new app in rxjs / react -- "maybe" cycle.js holding me thought of sharing state single page app.
usually, can self contain components state - because of user interaction on various parts of page, curious best practices architecture.
granted, knowledge of rxjs on deeper level not there - might missing obvious 'state' management ability.
so, cascade components state flows down parent container - seems easiest, have 1 giant component bunch of children.
introduce reflux
really question asks: best practice using rxjs / react , share state.
sidenote: common examples of "counters" trivial , have not been help. example, need instance - click arrow, pane slides in, different part of page - title fades in.
not sure if took @ rx react boilerplate (it has counter though!)
to utilise animation app in react use library react-motion
i think might easier route @ redux i'm sure there animation examples out there can you.
but if wanting in rx take @ gist , post explaining how redux can implemented rx, justin woo.
i know isn't immediate solution in terms of react.
in cycle can check out tylors's repo has animation through out. , if after routing , other concepts in cycle i've built boilerplate here
Comments
Post a Comment