how can we set normal DOM manipulation into react DOM

here is my code

had tried in different since I got continues error as


Solution 1:

DOM is not able to find this element

let stockPriceElement = document.getElementById('stock-prize');

stockPriceElement is not defined, try to console log it .

please share codesandbox link so that i can help you more