Reorganize the import_js example

This commit is contained in:
Alex Crichton
2019-03-25 13:49:05 -07:00
parent 362777fc75
commit faf49c7d56
7 changed files with 5 additions and 5 deletions

View File

@ -0,0 +1,21 @@
export function name() {
return 'World';
}
export class MyClass {
constructor() {
this._number = 42;
}
get number() {
return this._number;
}
set number(n) {
return this._number = n;
}
render() {
return `My number is: ${this.number}`;
}
}