Browse Source

Update scaling-up-with-reducer-and-context.md (#4945)

main
Omer Shahar 2 years ago
committed by GitHub
parent
commit
c6a79011e1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      beta/src/pages/learn/scaling-up-with-reducer-and-context.md

4
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() {

Loading…
Cancel
Save