score:0

componentDidMount() {
const appNode = ReactDOM.findDOMNode(this);
var searchingElement = appNode.querySelector("div.owl-nav");
  var wrapperElement = document.createElement("div");
  wrapperElement.setAttribute("class", "custom-nav");
  searchingElement.parentNode.insertBefore(
    wrapperElement,
    searchingElement
  );
  wrapperElement.appendChild(searchingElement);
}

Related Query

More Query from same tag