Skip to content

Commit 266c20f

Browse files
committed
Move default exports in docs to separate code snippets
1 parent b58b22c commit 266c20f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/rules/no-component-lifecycle-hooks.md

+4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ export default class MyComponent extends Component {
3939
willDestroyElement() {}
4040
willRender() {}
4141
}
42+
```
4243

44+
```js
4345
export default Component.extend({
4446
didDestroyElement() {},
4547
didInsertElement() {},
@@ -60,7 +62,9 @@ export default class MyComponent extends Component {
6062
init() { ... }
6163
willDestroy() { ... }
6264
}
65+
```
6366

67+
```js
6468
export default Component.extend({
6569
init() { ... }
6670
willDestroy() { ... }

0 commit comments

Comments
 (0)