score:11

Inside class bodies, methods are declared with

render() { ... }

not

render: function() { ... }

See the MDN documentation for more information.


Related Query

More Query from same tag