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
If you need to get it by IDs, then you can do it without arrays:
const myComps = {
firstComponent: YouComponentHere,
another: YourAnotherComponent,
"compo1232_34232": Comp1,
"f": ({ text }) => <div>Hello, { text }</div>,
"ну вы поняли": TestComponent,
}
// Достаем
const Component = myCompos.another;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question