Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Update scaling-up-with-reducer-and-context.md (#4945)
Browse files Browse the repository at this point in the history
  • Loading branch information
Omer-Shahar authored Aug 29, 2022
1 parent ea9e9ab commit c6a7901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beta/src/pages/learn/scaling-up-with-reducer-and-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit c6a7901

Please sign in to comment.