Skip to content

Commit 7c672be

Browse files
authored
Merge pull request #2978 from tylersernett/patch-1
Update part2e.md: fix grammar mistake
2 parents 19ddd04 + 061c18f commit 7c672be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/2/en/part2e.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ const App = () => {
526526
}
527527
```
528528
529-
The useEffect hook has now _[currency]_ as the second parameter. The effect function is therefore executed after the first render, and <i>always</i> after the table as its second parameter _[currency]_ changes. That is, when the state _currency_ gets a new value, the content of the table changes and the effect function is executed.
529+
The useEffect hook now has _[currency]_ as the second parameter. The effect function is therefore executed after the first render, and <i>always</i> after the table as its second parameter _[currency]_ changes. That is, when the state _currency_ gets a new value, the content of the table changes and the effect function is executed.
530530
531531
The effect has the following condition
532532
@@ -620,7 +620,7 @@ you can access the value of the key from the _process.env_ object:
620620
621621
```js
622622
const api_key = process.env.REACT_APP_API_KEY
623-
// variable api_key has now the value set in startup
623+
// variable api_key now has the value set in startup
624624
```
625625
626626
Note that if you created the application using _npx create-react-app ..._ and you want to use a different name for your environment variable then the environment variable name must still begin with *REACT\_APP_*. You can also use a `.env` file rather than defining it on the command line each time by creating a file entitled '.env' in the root of the project and adding the following.

0 commit comments

Comments
 (0)