Skip to content

Commit

Permalink
Fix typos in web components example (ja)
Browse files Browse the repository at this point in the history
Reflect PRs bellow in ja documents
preactjs#736
preactjs#751

```
registerElement -> register
Foo -> TextSection
<slot name=""> -> <span slot="">
```
  • Loading branch information
bakunyo authored May 11, 2021
1 parent 560cf1a commit 649a2a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/ja/guide/v10/web-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,14 @@ function TextSection({ heading, content }) {
);
}

registerElement(Foo, 'text-section', [], { shadow: true });
register(TextSection, 'text-section', [], { shadow: true });
```

使い方:

```html
<text-section>
<slot name="heading">Nice heading</slot>
<slot name="content">Great content</slot>
<span slot="heading">Nice heading</span>
<span slot="content">Great content</span>
</text-section>
```

0 comments on commit 649a2a6

Please sign in to comment.