S
S
s9d0R8sa62019-10-30 00:03:17
JavaScript
s9d0R8sa6, 2019-10-30 00:03:17

Ways to offload a React component from unnecessary business logic, DI in React?

Are there alternative ways to use Redux and mobX to offload the component from unnecessary business logic inside? The use of containers does not solve the problem - part of the logic is inseparable and uses one data stream, therefore, it is simply transferred to another place.
For example, moving logic into Model services and further DI into View?
What is the most concise way to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Philipp, 2019-10-30
@s9d0R8sa6

Extracting business logic into a service is standard practice. This shouldn't bother you.
By the way, you can fumble a model instance or use one model from another.
In general, the code with mobx is much more concise than in redux. You take a closer look at it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question