Skip to content

Commit cf7844a

Browse files
author
Anthony Du Pont
committed
⚡ Improve Examples Code
1 parent 88e57bb commit cf7844a

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

examples/basic-setup/src/renderers/home.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,18 @@ import Highway from 'dist/highway';
99
// - `onEnterCompleted`: Trigger when a transition `in` is over.
1010
// - `onLeaveCompleted`: Trigger when the view is removed from the DOM.
1111
class Home extends Highway.Renderer {
12-
onEnter() { }
13-
onLeave() { }
14-
onEnterCompleted() { }
15-
onLeaveCompleted() { }
12+
onEnter() {
13+
//
14+
}
15+
onLeave() {
16+
//
17+
}
18+
onEnterCompleted() {
19+
//
20+
}
21+
onLeaveCompleted() {
22+
//
23+
}
1624
}
1725

1826
// Don't forget to export in some way your custom renderer.

examples/basic-setup/src/renderers/page.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,18 @@ import Highway from 'dist/highway';
99
// - `onEnterCompleted`: Trigger when a transition `in` is over.
1010
// - `onLeaveCompleted`: Trigger when the view is removed from the DOM.
1111
class Page extends Highway.Renderer {
12-
onEnter() { }
13-
onLeave() { }
14-
onEnterCompleted() { }
15-
onLeaveCompleted() { }
12+
onEnter() {
13+
//
14+
}
15+
onLeave() {
16+
//
17+
}
18+
onEnterCompleted() {
19+
//
20+
}
21+
onLeaveCompleted() {
22+
//
23+
}
1624
}
1725

1826
// Don't forget to export in some way your custom renderer.

0 commit comments

Comments
 (0)