I am not able to understand when to use it and why it is phrased as “dangerous” as i have seen a number of coders using it in their codes.I need a clarification on when do I use it and how am yet to understand it as I have ony seeing, used and heard of it today.
i was constructing a component that consist of a question card as I was trying to build or create a quiz site that asks random questions .
As i was looking for ways to do it I came across the “dangerouslytsetinnerhtml”.Though i am not yet convinced on how it works.and is there an alternative ?
Gire Munga is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.