We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11e4ad5 commit 50c79aaCopy full SHA for 50c79aa
src/content/reference/react/useContext.md
@@ -826,7 +826,7 @@ const initialTasks = [
826
```
827
828
```js src/AddTask.js
829
-import { useState, useContext } from 'react';
+import { useState } from 'react';
830
import { useTasksDispatch } from './TasksContext.js';
831
832
export default function AddTask() {
@@ -855,7 +855,7 @@ let nextId = 3;
855
856
857
```js src/TaskList.js
858
859
import { useTasks, useTasksDispatch } from './TasksContext.js';
860
861
export default function TaskList() {
0 commit comments