src/actions.js
function (selector, done) {
  this.evaluate_now((selector) => {
    let element = document.querySelector(selector)
    if (!element) {
      return false
    }

    for (let key in element) {
      if (key.startsWith('__reactInternalInstance$')) {
        return true
      }
    }

    return false
  }, done, selector)
}
function (selector, done) {
  this.evaluate_now((selector) => {
    let element = document.querySelector(selector)
    if (!element) {
      return false
    }

    for (let key in element) {
      if (key.startsWith('__reactInternalInstance$')) {
        return true
      }
    }

    return false
  }, done, selector)
}
function ( selector , done ) { this . evaluate_now ( ( selector ) => { let element = document . querySelector ( selector ) if ( ! element ) { return false } for ( let key in element ) { if ( key . startsWith ( '__reactInternalInstance$' ) ) { return true } } return false } , done , selector ) }
Check if react element exists

@param {String} selector
@param {Function} done
@return {Boolean}
Check if react element exists