Skip to content

Commit 10b35f5

Browse files
committed
Make improvements to grammar
1 parent 1d67bb2 commit 10b35f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/1/en/part1c.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ const Hello = (props) => {
6060
}
6161
```
6262

63-
The logic for guessing the year of birth is separated into a function of its own that is called when the component is rendered.
63+
The logic for guessing the year of birth is encapsulated within a function of its own, which is invoked when the component is rendered.
6464

65-
The person's age does not have to be passed as a parameter to the function, since it can directly access all props that are passed to the component.
65+
The person's age does not need to be explicitly passed as a parameter to this function because the function can directly access all the props provided to the component.
6666

67-
If we examine our current code closely, we'll notice that the helper function is defined inside of another function that defines the behavior of our component. In Java programming, defining a function inside another one is complex and cumbersome, so not all that common. In JavaScript, however, defining functions within functions is a commonly-used technique.
67+
If we examine the current code, we notice that the helper function is defined within another function that determines the component's behavior. In Java programming, defining a function within another function can be complex and is uncommon. However, in JavaScript, defining functions within functions is a common and efficient practice.
6868

6969
### Destructuring
7070

@@ -176,7 +176,7 @@ const Hello = ({ name, age }) => {
176176
177177
### Page re-rendering
178178
179-
So far all of our applications have been such that their appearance remains the same after the initial rendering. What if we wanted to create a counter where the value increased as a function of time or at the click of a button?
179+
Up to this point, our applications have been static — their appearance remains unchanged after the initial rendering. But what if we wanted to create a counter that increases in value, either over time or when a button is clicked?
180180
181181
Let's start with the following. File <i>App.jsx</i> becomes:
182182

0 commit comments

Comments
 (0)