Skip to content

Commit d30bb63

Browse files
authored
Update hooks.md (#616)
1 parent d5d8dcd commit d30bb63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ function Foo() {
547547

548548
useEffect(() => {
549549
// 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
551551
if (!divRef.current) throw Error("divRef is not assigned");
552552

553553
// Now divRef.current is sure to be HTMLDivElement

docs/basic/getting-started/hooks.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function Foo() {
195195

196196
useEffect(() => {
197197
// 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
199199
if (!divRef.current) throw Error("divRef is not assigned");
200200

201201
// Now divRef.current is sure to be HTMLDivElement

0 commit comments

Comments
 (0)