S
S
someserj2016-06-17 11:48:54
Frontend
someserj, 2016-06-17 11:48:54

What are the main concepts in Flux, Reflux, Redux architectures?

for example, in AngularJS there are such concepts as controller, services, dependencies, module, scope and so on. and what concepts appear in these architectures and in React in particular?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2016-06-17
@maxfarseer

in redux you have:
actions creators * - action creators. Functions that you can call instead of calling an action directly. For example:

function add() {
  return { тип: ДОБАВИТЬ_ОДИН }
}

reducer - reducer. A function that takes the current store object and returns a new one (with new data).
Total : in redux there are only three fundamental concepts: action (action), reducer (reducer) and state (store)
In react , there is even less: there is one concept - a component. And there, if you want: a smart / dumb component, a stateless component, and maybe something else.
ps in the function code there is Russian for clarity.
pps tutorials: react for beginners , creating an application using redux

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question