Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to see if a web site is useing react

if(!!window.React ||
   !!document.querySelector('[data-reactroot], [data-reactid]'))
  console.log('React.js');

if(!!window.angular ||
   !!document.querySelector('.ng-binding, [ng-app], [data-ng-app], [ng-controller], [data-ng-controller], [ng-repeat], [data-ng-repeat]') ||
   !!document.querySelector('script[src*="angular.js"], script[src*="angular.min.js"]'))
  console.log('Angular.js');

if(!!window.Backbone) console.log('Backbone.js');
if(!!window.Ember) console.log('Ember.js');
if(!!window.Vue) console.log('Vue.js');
if(!!window.Meteor) console.log('Meteor.js');
if(!!window.Zepto) console.log('Zepto.js');
if(!!window.jQuery) console.log('jQuery.js');
Comment

PREVIOUS NEXT
Code Example
Javascript :: jquery check if attribute exists 
Javascript :: react interpolation string html 
Javascript :: get the domain name in javascript 
Javascript :: moment is not defined 
Javascript :: the engine node is incompatible with this module 
Javascript :: mui usetheme 
Javascript :: install jmeter mac 
Javascript :: adding integers jquery 
Javascript :: jquery varable exists 
Javascript :: js number validation 
Javascript :: check if a string contains another string js 
Javascript :: function click anywhere javascript 
Javascript :: default ordering false in datatable 
Javascript :: title case a sentence-javascript 
Javascript :: js input text set value 
Javascript :: js object random key 
Javascript :: node read csv 
Javascript :: props.history.push with data 
Javascript :: check object has value 
Javascript :: javascript make sound 
Javascript :: scrollview refresh react native 
Javascript :: jquery change selected option to first 
Javascript :: puppeteer how to type in input 
Javascript :: aos library animation angular 
Javascript :: document ready jquery 
Javascript :: remover o primeiro caracter de uma string javascript 
Javascript :: react-native-cli remove 
Javascript :: how to store words in an array in javascript 
Javascript :: foreach selector in jquery 
Javascript :: fetch json 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =