JSFiddle - React, Tailwind, and code Playground

JavaScript

class A {
  foo() {
    this.bar()
  }
  bar() {
    console.log('bar')
  }
}

class B extends A {
	bar() {  	
    super.foo()
    console.log('bar 2')
  }
}

let b = new B

b.bar() // Uncaught RangeError: Maximum call stack size exceeded