Skip to content

Commit 4a87c5f

Browse files
Miguel Angel Chimali CobanoMiguel Angel Chimali Cobano
authored andcommitted
misspelling
1 parent 6c7771a commit 4a87c5f

File tree

1 file changed

+1
-1
lines changed
  • 04-frameworks/01-react/03-react-hooks/02-use-state-object

1 file changed

+1
-1
lines changed

04-frameworks/01-react/03-react-hooks/02-use-state-object/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ If we start the application we can see how the name and lastname are displayed.
8383

8484
This is not going to work, we are again applying a Java / Angular approach,
8585
we are trying to modify something that is alive only while the function is being
86-
executed, once the component is rerended this value is be lost.
86+
executed, once the component is rerendered this value is lost.
8787

8888
- The way to do this is by creating a new object and assigning it using the _setState_
8989
method. In order to do this copy we use the spread operator (by doing this, all the fields

0 commit comments

Comments
 (0)