I
I
Igor Shumilovsky2016-08-02 11:49:35
JavaScript
Igor Shumilovsky, 2016-08-02 11:49:35

Can backbone models and React work together? And where to put Redux?

Who has experience using react with backbone models and collections in ec6? Does anyone use this link at all? If yes, what do you use together with Flux/Redux? How do you associate react components with models?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid Prokopchuk, 2016-08-02
@JiSeven

They can, but it is desirable to get rid of the backbone as quickly as possible.
For the first time, you can get by with an intermediary between redux actions and the backbone model, which will provide the necessary payload for the reducer, referring to the entity backbone.
Otherwise, you will have to go down the slippery path of calling .get() / .set() / .save() directly in react components, and this will not lead to anything good.
In short, backbone is not a friend of React :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question