From d13821142ad95f13bd96e9021068e17bc1339eac Mon Sep 17 00:00:00 2001 From: Rebekah Banks <168665115+Banksrm75@users.noreply.github.com> Date: Fri, 1 Nov 2024 08:46:10 -0500 Subject: [PATCH] Update optimize-react-components-usereducer.md --- src/content/lesson/optimize-react-components-usereducer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/lesson/optimize-react-components-usereducer.md b/src/content/lesson/optimize-react-components-usereducer.md index f8d653437..60d6cdb49 100644 --- a/src/content/lesson/optimize-react-components-usereducer.md +++ b/src/content/lesson/optimize-react-components-usereducer.md @@ -44,7 +44,7 @@ function counterReducer(state , action = {}) { } ``` -This function is used as the first parameter of the `useReducer` hook. As second parameter an object with the initial values of the state must be passed. +This function is used as the first parameter of the `useReducer` hook. The second parameter is an object with the initial values of the state which must be passed. The hook call returns an array of two values representing the new state (`state`) and the dispatcher: the object that calls the execution of the actions of the reducer logic (`actions`).