Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
It will be correct not to save the component key in the store, but to save the data from which you can understand which component to render. If it is one of the list of some values, for example - id or index of the list element.
If it is difficult to think in this way - the easiest way is to give each component its own unique id and save it in the store. Type
{store.activeComponent === "component1" && <Component1/>}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question