Questions tagged [reactjs-flux]

Flux is the application architecture that Facebook uses for building client-side web applications with React. It complements React's composable view components by utilizing a unidirectional data flow.

Flux is the application architecture that Facebook uses for building client-side web applications with React. It complements React's composable view components by utilizing a unidirectional data flow.

Flux applications have three major parts: the dispatcher(s), the store(s), and the view(s) (React components).

Flux eschews MVC in favor of a unidirectional data flow. When a user interacts with a React view, the view propagates an action through a central dispatcher, to the various stores that hold the application's data and business logic, which updates all of the views that are affected. This works especially well with React's declarative programming style, which allows the store to send updates without specifying how to transition views between states.

###Some popular implementations of Flux


Related tags

822 questions
-1
votes
1 answer

Reactjs flux without npm

I want to write my application using flux architecture, but I want to do this without any external libraries, npm, etc. Is this possible?
user99999
  • 1,994
  • 5
  • 24
  • 45
-1
votes
1 answer

Get data from already populated store

How can I get the data present in a store that has been already populated to use it in the render function? For example: ReactDOM.render( , document.getElementById('app') …
-1
votes
1 answer

How to store editing state from different sources

There are a lot of online examples of todo lists. Those especially where you can edit a todo. It seems obvious to store which one you're editing in the store. But now image if you had two todo lists on the same page. Let's say both of these todo…
jshthornton
  • 1,284
  • 11
  • 29
-1
votes
1 answer

ReactJS + Flux + PHP Sample?

I'm looking for an example that uses ReactJS+PHP (client-server side) which make uses at the same time of the architecture FLUX? Any recommendation? Thanks in advance.
nightclub
  • 671
  • 2
  • 9
  • 20
-1
votes
2 answers

FLUX with multiple independent stores/dispatchers

I'm building a App with React and Flux/McFly and want to have to INDEPENDENT Stores but my McFly Actions are passed to EVERY Store i created with mcFly - despite i use seperate files to import the mcFly Instance /stores/msg/mcfly.js: var McFly …
DoubleU23
  • 118
  • 1
  • 7
-1
votes
1 answer

React Flux update loop with websocket

I have an application which uses react with flux and a webserver that stores all the data and notifies all the subscribers when an update has occured through a websocket. My problem is that when my component triggers an action the new state is sent…
vato
  • 409
  • 1
  • 3
  • 15
-1
votes
1 answer

Why is this.state.name not being used properly in my component?

I have a teamName store that stores the name of the team and changes on depending on whether a name is clicked/hovered. TeamStore.js: function setName(name) { _team = name; _original = name; } //set a temp team name when sidemenu item is…
Username
  • 1,950
  • 2
  • 12
  • 21
-2
votes
1 answer

How can I dynamically render a variable name in dot notation?

I am not sure how to accurately describe this issue, but the code should suffice. This code is in React.js, but I think it is a JavaScript question more than anything. I have a variable initialization: const key = this.state.key; This will…
-2
votes
1 answer

Can someone give an example of an app that is extremely well suited to Flux/Redux?

If the example could help me understand the answers to the following questions I would be very happy: Should you use a Flux/Redux store for data that is unlikely to change throughout the apps lifecycle? And if most of the data in your app is like…
JasoonS
  • 1,432
  • 3
  • 13
  • 26
-2
votes
2 answers

What are the advantages of react and flux apart from virtual dom concept

I have a Html page which is configured/connected with a third party engine that continuously checks the web application against some rules and embeds a div tag in to the body if conditions are passed. Creation of the div and all the elements in it…
Ramson
  • 229
  • 4
  • 12
-3
votes
1 answer

ReactJS: converting html files into React components

Lets say I have Test1.html,Test2.html, Test3.html ...etc files having different form data. I want to generate reactJS components like Test1.js, Test2.js Test3.js components with complete information. we have idea like one common reactjs plugin to…
-4
votes
2 answers

What should i do with "TypeError: store.addListener is not a function" error

I write a react program with flux architecture but when I want to run it, this error occurred can you help me what should I do to solve this problem The error picture
1 2 3
54
55