Skip to content

Commit

Permalink
Remove string ref from function component example (facebook#8244)
Browse files Browse the repository at this point in the history
Refs can't be attached to stateless functional components.
  • Loading branch information
fson authored and acusti committed Mar 15, 2017
1 parent 40b10a0 commit 97fb518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/web-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ One common confusion is that Web Components use "class" instead of "className".
```javascript
function BrickFlipbox() {
return (
<brick-flipbox class="demo" ref="foo">
<brick-flipbox class="demo">
<div>front</div>
<div>back</div>
</brick-flipbox>
Expand Down

0 comments on commit 97fb518

Please sign in to comment.