JSFiddle - React, Tailwind, and code Playground

by nodpekar

HTML

<script src="https://getfirebug.com/firebug-lite-debug.js"></script>

Babel + JSX

class Human {
	gender = 'male';
  printGender = () => {
  console.log(this.gender);
  }
}

class Person extends Human {
	name = 'max';
  gender = 'female';
  
  printMyName = () => {
  
  console.log(this.name);
  }
}

const person = new Person();
person.printMyName();
person.printGender();