mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Remove string ref from function component example (#8244)
Refs can't be attached to stateless functional components.
(cherry picked from commit 3668a2e678)
This commit is contained in:
committed by
tomocchino
parent
2f7e6c3a5d
commit
bda773c963
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user