Browse Source

Remove string ref from function component example (#8244)

Refs can't be attached to stateless functional components.
main
Ville Immonen 9 years ago
committed by Dan Abramov
parent
commit
f8a328d6a5
  1. 2
      docs/web-components.md

2
docs/web-components.md

@ -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>

Loading…
Cancel
Save