G
G
Gimir2020-11-24 15:53:40
React
Gimir, 2020-11-24 15:53:40

How to use classes in React (not class components) with Redux library?

Good afternoon! I feel that I do not use most of the features of the language in which I write, namely, classes. The maximum where I have used them so far is the creation of an object for working with api.
But is it really not possible to use all the functionality of these tools to the fullest when you write on the framework?
For example, if you take redax - a bunch of tutorials, very good documentation, ease of use, etc. But is it possible to add the functionality of classes to this rather convenient tool? Does anyone do something similar?
When I search for it in Google I find something like - Using redax with class components)
Simply put, how to learn, where to learn how to use the functionality of classes (in the right way) when writing in a framework?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Afanasy Zakharov, 2020-11-24
@afanasiyz

If you don’t know why this will be needed, and you couldn’t find best practices on the Internet, then most likely no one has used it.
You either need to come up with your own way to cross a hedgehog and a snake, if you have an understanding of how to do it well, or do not try to reinvent the wheel.
"There is something in the language, but I don't use it" - a very bad motivation, honestly :)
except for some kind of mind exercises.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question