Controllers are a little easier to set up than view or model
classes, because for views and models we're overriding
the configs in the base class. But controllers simply hold event
handlers; these are instance functions.

<pre class="runnable text readonly">
import Base from '../../../node_modules/neo.mjs/src/controller/Component.mjs';

class MainViewController extends Base {
    static config = {
        className: 'MyApp.view.MainViewController',
    }

    /**
    * This is an example of a button's click handler
    */ 
    onClick() {
        console.log('click');
    }
}

Neo.setupClass(MainViewController);

export default MainViewController;
</pre>
