E
E
Egor Mikheev2019-09-04 18:09:27
typescript
Egor Mikheev, 2019-09-04 18:09:27

Are there any solutions to use mobx-state-tree in OOP style and with TS support?

The previous application was successfully implemented on the mobx library in TypeScript and defining models through classes (ES6).
This time I thought about using mobx-state-tree. What caught my eye was that out of the box the library offers a functional programming style. And I would like to stay in the OOP. Bit by bit from the network, I found several libraries. But their implementation brings doubts about the appropriateness of the application. It's easier then to drive everything in a functional style.
Here are the questions:
- Maybe someone was interested in this problem and can share the solutions found?
Additional questions:
- Mobx + mobx-state-tree - does it make sense to define store models (mst) in mobx models and somehow use them together?
List of found libraries:
-https://github.com/charto/classy-mst
- https://github.com/farwayer/mst-decorators (here the guy needs to better define types for ts)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor Mikheev, 2019-09-05
@ogregor

- https://github.com/gnaeus/react-ioc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question