Questions tagged [flux]

An application design paradigm used as a replacement for MVC, pioneered at Facebook by Jing Chen

Flux is an application design paradigm used as a replacement for the more traditional pattern.

It complements React's composable view components by utilizing a unidirectional data flow. It's more of a pattern rather than a formal framework, and you can start using Flux immediately without a lot of new code.


Popular implementations :

1455 questions
38
votes
2 answers

Flux best practices: Stores dispatching actions, AJAX calls in Web API Utils?

I understand that this image has been the ultimate guide of most, if not all, Flux programmers. Having this flow in mind, I have a few questions: Is it correct/highly advisable to have all of my $.ajax calls inside my Web API Utils? Callbacks…
ton
  • 1,102
  • 3
  • 13
  • 32
33
votes
1 answer

react-router : run is not a function

A Egghead tutorial teaches it like this: var React = require('react'); var Router = require('react-router'); var routes = require('./config/routes'); Router.run(routes, function(Root){ React.render(,…
Nick Pineda
  • 5,464
  • 11
  • 39
  • 60
28
votes
2 answers

React.js - Communicating between sibling components

I'm new to React, and I'd like to ask a strategy question about how best to accomplish a task where data must be communicated between sibling components. First, I'll describe the task: Say I have multiple