JSFiddle - React, Tailwind, and code Playground

by Dilip Prajapati

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.4.1/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.4.1/umd/react-dom.production.min.js"></script>

React

class Human{
/*   constructor(){
      this.age='25';
  }
  
  PrintMyage(){
  console.log(this.age);
  } */
}

class Person extends Human {
	constructor(){
  	this.name='Dilip';
  }
  
  PrintMyname(){
  console.log('my name is '+this.name);
  //alert('my name is '+this.name);
  }
  
  
}
const person= new Person();
person.PrintMyname();
//person.PrintMyage();