W
W
Wylaroren2021-07-05 08:00:27
typescript
Wylaroren, 2021-07-05 08:00:27

What tools for TypeScript + React development are relevant at the time of summer 2021?

I have been writing React applications for about a year. The language was JavaScript (in the sense not TypeScript), used Redux.

Starting from the summer of 2019, I completely switched to TypeScript and Vue, but such facts as the delay in the release of Vue 3 for a couple of years (articles that it was supposedly implemented have nothing to do with reality) caused disappointment both for me and for many companies, and therefore I return to React, only now I will write applications in TypeScript.

I would like to ask experienced React developers what tools are relevant at the time of summer 2021 and what analogues of Vue solutions are in React.

1. Analogs of vue-properties-decorators

OOP syntax support in React is out of the box, but are there libraries like vue-property-decorator,making it even easier to work with classes, state, and properties?

As far as I know, while I was writing in Vue, React introduced the so-called. hooks. I may be wrong, but from my current experience, it seemed to me that hooks owe their existence to novice developers who do not want to learn OOP. Therefore, I plan to continue writing class-based components and only switch to hooks if they really provide a lot that classes can't.

2. Analogues for vuex-module-decorators for Redux or a replacement for Redux

When I used pure Redux, then 50 percent of the time was spent on the routine of creating files, declaring actions, non-mutating state updates, bindings, and so on. When I switched to Vue + Vuex, and even began to use vuex-module-decorators, it was something great - the routine became many times less!

With the use of dynamic modules, you can generally store classes anywhere and the effect is as if the module is completely independent of stor-a (useful for cases when some component is created and its markup, styles, vue component and service class are combined in one folder , implemented using vuex-module-decorators).

Are there any tools that will make it easier to work with Redux at the vuex-module-decorators level?
Or maybe I'd better look towards Redux counterparts like Mobx?

Finally, I would like to ask you to recommend any libraries for React, from the use of which you received positive impressions - I will look at them all.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question