E
E
Enrique Cassaro2021-03-09 00:04:01
JavaScript
Enrique Cassaro, 2021-03-09 00:04:01

What to do if there are compatibility issues with html + react and django cms?

In general, the problem is that, for example, we have a div block that is created via cms. Here's what it looks like:
60468ffd45362332875903.png
Where 1, there is an array in the form of a string, but then it turns into a js array through js
Where 2, the same thing
3 - option should be displayed from array 1
4 - the price changes dynamically, depending on the selected option

The problem is that there can be a bunch of such blocks and everything needs to be displayed correctly, that is, to make a universal solution. You can use native js, react, but so that all the layout is still in html, and the rest is through js and react

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question