Category Archives: react

React, redux and redux-thunk with typescript

I tried it and it looks strange, verbose and painful. But if you want to try it, please take a look at: (together with

Multiple react applications on one page. Theory

Yes, it can be done. That’s how you render several react apps on one page:

React. Benchmarking and optimizing performance

There is a tool called react-addons-perf that should be imported into your project.

After that you can use Perf object in your console. It can tell you about your react performance issues, not including redux. For instance, you can check unnecessary renders or unnecessary change calculations:

Here’s more on that — And …

Read more

MVC vs Flux

They are all architecture patterns. M is for model. It stores generic logic for the model like fields and calculations based on the fields like validation and stuff. V is for view. It just renders stuff and passes user interactions (events) to it’s controller via controller’s API. C is for controller that ties models to …

Read more

Testing react’s dom with jest and enzyme

Install it like this:

Regression testing of react app with jest

Example is here — The main idea is this:

React component lifecycle methods

Flow of lifecycle methods I checked it with react 16.2.0. On a client When component is rendered for the first time