Remove string ref from function component example (#8244)
Refs can't be attached to stateless functional components.
Ville Immonen committed
Nov 9, 2016 at 18:38 UTC
3668a2e678e6d87b63300aa779481b25105f2092
1 file changed
+1
-1
docs/docs/web-components.md
+1
-1
@@ -31,7 +31,7 @@ One common confusion is that Web Components use "class" instead of "className".
31
```javascript
32
function BrickFlipbox() {
33
return (
34
- <brick-flipbox class="demo" ref="foo">
34
+ <brick-flipbox class="demo">
35
<div>front</div>
36
<div>back</div>
37
</brick-flipbox>