mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
@@ -479,7 +479,7 @@ Normally, writing or reading `ref.current` during render is not allowed. However
|
||||
|
||||
<DeepDive title="How to avoid null checks when initializing useRef later">
|
||||
|
||||
If use a type checker and don't want to always check for `null`, you can try a pattern like this instead:
|
||||
If you use a type checker and don't want to always check for `null`, you can try a pattern like this instead:
|
||||
|
||||
```js
|
||||
function Video() {
|
||||
|
||||
Reference in New Issue
Block a user