Skip to content

Commit a2b03c2

Browse files
committed
update readme
1 parent 964d002 commit a2b03c2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ Use System Runtime APIs to create your application:
2525
let app = runtime.system('app');
2626

2727
// add code in the start method
28-
app.on('start', function start() {
29-
console.log('Hello world !');
30-
});
28+
app.on('start', () => console.log('Hello world !'));
3129

3230
// run the app
3331
app.start();
@@ -55,7 +53,7 @@ It will return this JSON:
5553
"_id": "1ea9c1d5f811ae1",
5654
"component": "154cd18d0210516",
5755
"state": "start",
58-
"action": "function start() {\n console.log('Hello world !');\n}",
56+
"action": "() => console.log('Hello world !')",
5957
"useCoreAPI": false,
6058
"core": false
6159
}

0 commit comments

Comments
 (0)