File tree 2 files changed +2
-2
lines changed
docs/basic/getting-started
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ function Foo() {
547
547
548
548
useEffect (() => {
549
549
// Note that ref.current may be null. This is expected, because you may
550
- // conditionally render the ref-ed element, or you may forgot to assign it
550
+ // conditionally render the ref-ed element, or you may forget to assign it
551
551
if (! divRef .current ) throw Error (" divRef is not assigned" );
552
552
553
553
// Now divRef.current is sure to be HTMLDivElement
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ function Foo() {
195
195
196
196
useEffect (() => {
197
197
// Note that ref.current may be null. This is expected, because you may
198
- // conditionally render the ref-ed element, or you may forgot to assign it
198
+ // conditionally render the ref-ed element, or you may forget to assign it
199
199
if (! divRef .current ) throw Error (" divRef is not assigned" );
200
200
201
201
// Now divRef.current is sure to be HTMLDivElement
You can’t perform that action at this time.
0 commit comments