Any redux developer will tell you that one of the hardest parts of application development is asynchronous calls - how you will handle requests, timeouts and other callbacks without complicating redux actions and reducers.

In this article, I will describe several different approaches to managing asynchrony in your application, ranging from simple approaches like redux-thunk, to more advanced libraries like redux-saga.

Good afternoon everyone. In March-April, it will be two years since I released small text books on React in Russian. Textbooks without "water" came out at a good time, and I received many visits, downloads and "readers", also known as different ip-addresses.

Books dipped my head in counseling in Russian. I would like to express my thoughts on this and hear your comments (both from those who consult and from those who seek help). I hope, for someone this article will be the catalyst for the reaction "to help others and earn".

<{full}>React introduces the new API (context API), Which uses a "pattern" (? template) render props ( <{short}>React introduces the new API ( context API ), Which uses a "pattern" (? template) render props ( React introduces the new API ( context API ), Which uses a "pattern" (? template ) render props ( ? more ). At seminars, meetings and on Twitter I see that there are a lot of questions about using render props outside the renderer, for example, in event handlers or `lifecycle hooks'. appeared. @ reactions /component !! It is very convenient to build render props in the life cycle hooks without any shuffling in the code: import ...

Not so long ago React positioned itself as "V in MVC". After this commit the marketing text has changed, but the essence has remained the same: React is responsible for mapping, the developer for everything else, that is, speaking in terms of MVC, for Model and Controller.

One of the solutions for controlling the Model of your application is Redux. His appearance is motivated by The increased complexity of frontend applications that MVC can not handle.

The developers of React promise to add a new API by the end of the year, but I think they will be able to do it faster.Would you like to watch similar videos with subtitles?YesNoVoted by 1 user. There are ...

Kind time of the day, my name is Vladimir Milenko, I'm Frontend developer at Lightspeed, and today we'll talk about the problem of missing components in this or that framework and trying to automatically convert them.

Prehistory

Historically, both in eCommerce and Retail products for admin panels we use React.JS as the main framework, but the restaurant platform uses Angular, which does not allow them to use our component library. Before my vacation, this problem became more acute, due to the need to bring the UI /UX to one kind. I decided to do a little research on the migration ...

In fact, I wrote probably the slowest memo function, but it turned out to be fast. My fault is not here. It's all about balance.

In the balance between how long the memo function will be performed, how much additional time will be required for the sugar of memoization, and (about it everyone forgets) how many programmers it will take to properly fix this memoization.

But let's start with a simple - what kind of word is so strange - "memoization".

TL; DR: in these series you will learn how to get React and Redux to manage SVG elements to create a game. The knowledge gained in this series will allow you to create animations not only for games. You can find the final version of the source code developed in this part by GitHub .

here ( , The link died - the translator's comment is ). But do not get carried away by the game, you have work!

Preliminary conditions

To successfully read the article, you need to have a certain level of knowledge about web development (mainly about jаvascript) and a computer with pre-installed ...

When developing highly loaded web applications for better scaling, a principle such as CQRS is often used. It says that the method must be either a command that performs an action, or a query that returns data, but not both. In other words, the question to the system should not change the answer. More formally, the return value can only be clean, with no side effects methods.

But for a good scaling of the API separation, read /write is not enough. It is necessary to separate the databases with which this API works. Here EventSourcing comes to our aid. He suggests that we store all the events of the ...