Updating state of React component through devtools console

I am trying to set the value of the input field using the devtools console in Google Chrome The catch to this task is that the element’s state is likely to be contolled by the React.js state. I have made this conclusion after finding the property that says __reactProps, among the others: The element that… Read More Updating state of React component through devtools console

insertAdjacentElement is not adding or appending the element in the target element

I created a function to create div function createDivElement(className: string): HTMLDivElement { const divElement = document.createElement(‘div’) divElement.className = className return divElement } after that I created another function which returns elements or structure of Tooltip I am making function generateTooltip() { const TooltipParent = createDivElement(`tooltip-parent-${randomString(8)}`) const Tooltip = createDivElement(`tooltip-${randomString(8)}`) const TooltipArrow = createDivElement(`tooltip-arrow-${randomString(8)}`) const TooltipContent… Read More insertAdjacentElement is not adding or appending the element in the target element