Good day. I use React JS. Render component. I have a dynamic line:
var string = "#k - #score - #date": We do not know the exact order. And suppose that there are a very large number of such "tags" in the line.
We have an object with the keys of these labels and the jsx pattern corresponding to the label.
var template = { "#k" : <div>Комадна</div>, "#score" : <span>Результат</span> }; The size of this object is always equal to the number of tags in the line above.
so here The render should return a jsx pattern based on this string. How to implement it?
thank