Fix the ref sample code to remove the syntax error

This commit is contained in:
Brandon Faulkner 2020-02-25 08:22:41 -06:00 committed by GitHub
parent a4fec8eb99
commit 6d1a7bed58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1115,7 +1115,7 @@ Methods operate on a ref to the Video element. You can create a ref using code l
``` ```
return ( return (
<Video source={...} <Video source={...}
ref => (this.player = ref) /> ref={ref => (this.player = ref)} />
); );
``` ```