Omer Shahar
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
beta/src/pages/learn/scaling-up-with-reducer-and-context.md
|
|
@ -1229,7 +1229,7 @@ const initialTasks = [ |
|
|
|
``` |
|
|
|
|
|
|
|
```js AddTask.js |
|
|
|
import { useState, useContext } from 'react'; |
|
|
|
import { useState } from 'react'; |
|
|
|
import { useTasksDispatch } from './TasksContext.js'; |
|
|
|
|
|
|
|
export default function AddTask({ onAddTask }) { |
|
|
@ -1258,7 +1258,7 @@ let nextId = 3; |
|
|
|
``` |
|
|
|
|
|
|
|
```js TaskList.js active |
|
|
|
import { useState, useContext } from 'react'; |
|
|
|
import { useState } from 'react'; |
|
|
|
import { useTasks, useTasksDispatch } from './TasksContext.js'; |
|
|
|
|
|
|
|
export default function TaskList() { |
|
|
|