Commit bf10489
committed
docs: add note about use(Context) support in React 19 to useContext reference
Informs developers that starting in React 19, use(Context) can be used instead of useContext(Context) to read context inside conditionals and loops.1 parent 7c36f7a commit bf10489
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
| |||
0 commit comments