JSFiddle - React, Tailwind, and code Playground

by Artem

JavaScript

'use strict';

function Parent() {
	
}

Parent.prototype.render = function() {
	console.log('Hello');
}

function Child() {

}

Child.prototype = Object.create(Parent.prototype);
Child.prototype.render = function() {
	super.render();
}

const child1 = new Child();
child1.render();