Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

Commit

Permalink
Fix deprecation example of renderToElement
Browse files Browse the repository at this point in the history
  • Loading branch information
josemarluedke committed Nov 29, 2016
1 parent 1c0e8ba commit 8b67587
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/deprecations/v2.x.html.md
Expand Up @@ -743,13 +743,14 @@ Please refactor to use `appendTo`:
For example, if you had:
```js
component.renderToElement('.my-component-wrapper');
component.renderToElement('div');
```
Would be refactored to:
```js
component.appendTo('.my-component-wrapper');
let element = document.createElement('div');
component.appendTo(element);
```
Note that both APIs are private, so no public API is been deprecated here.
Expand Down

0 comments on commit 8b67587

Please sign in to comment.