Skip to content

Commit 9ff6961

Browse files
authored
Merge branch 'source' into patch-1
2 parents 5b7f3e8 + ff09aba commit 9ff6961

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+2913
-1027
lines changed

src/components/InfoBanner.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ const InfoBanner = ({ visible, onHide }) => {
4343
return (
4444
<div style={style}>
4545
<div stule={textStyle}>
46-
Numbering of the exercises in part 2 has changed!
46+
<p>Part 6 has new content about React Query, useReducer hook and React context.</p>
47+
<p>The new content replaces the chapter on Redux connect (that still remains online for a while).</p>
48+
<div style={{ marginTop: 10 }}><i>If you have already completed the part 6, this change has no effect on your progress.</i></div>
4749
</div>
4850
<div style={buttonDiv}>
4951
<button style={buttonStyle} onClick={onHide}>

src/components/PartBanner/PartBanner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const partNameTranslations = {
1212
'Palvelimen ohjelmointi NodeJS:n Express-kirjastolla',
1313
'Express-sovellusten testaaminen, käyttäjänhallinta',
1414
'React-sovelluksen testaaminen',
15-
'Sovelluksen tilan hallinta Redux-kirjastolla',
15+
'Edistynyt tilan hallinta',
1616
'React router, custom-hookit, tyylikirjastot ja webpack',
1717
'GraphQL',
1818
'TypeScript',
@@ -28,7 +28,7 @@ const partNameTranslations = {
2828
'Programming a server with NodeJS and Express',
2929
'Testing Express servers, user administration',
3030
'Testing React apps',
31-
'State management with Redux',
31+
'Advanced state management',
3232
'React router, custom hooks, styling app with CSS and webpack',
3333
'GraphQL',
3434
'TypeScript',

src/components/layout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Footer from './Footer/Footer';
1010
import PropTypes from 'prop-types';
1111
import SkipToContent from './SkipToContent/SkipToContent';
1212

13-
const BANNER_TO_KEY = 'exercise_numbering_part2_seen';
13+
const BANNER_TO_KEY = 'part_6_changes';
1414

1515
const Layout = props => {
1616
const { i18n } = useTranslation();

src/content/2/en/part2d.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -715,17 +715,17 @@ Full stack development is <i> extremely hard</i>, that is why I will use all the
715715
716716
<h3>Exercises 2.12.-2.15.</h3>
717717
718-
<h4>2.12: Phonebook step7</h4>
718+
<h4>2.12: The Phonebook step7</h4>
719719
720720
Let's return to our phonebook application.
721721
722722
Currently, the numbers that are added to the phonebook are not saved to a backend server. Fix this situation.
723723
724-
<h4>2.13: Phonebook step8</h4>
724+
<h4>2.13: The Phonebook step8</h4>
725725
726726
Extract the code that handles the communication with the backend into its own module by following the example shown earlier in this part of the course material.
727727
728-
<h4>2.14: Phonebook step9</h4>
728+
<h4>2.14: The Phonebook step9</h4>
729729
730730
Make it possible for users to delete entries from the phonebook. The deletion can be done through a dedicated button for each person in the phonebook list. You can confirm the action from the user by using the [window.confirm](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm) method:
731731
@@ -744,7 +744,7 @@ const delete = (id) => {
744744
}
745745
```
746746
747-
<h4>2.15*: Phonebook step10</h4>
747+
<h4>2.15*: The Phonebook step10</h4>
748748
749749
<i>Why is there a star in the exercise? See [here](/en/part0/general_info#taking-the-course) for the explanation.</i>
750750

src/content/2/es/part2a.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ import ReactDOM from 'react-dom'
401401

402402
[importan](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) dos módulos, lo que les permite ser utilizados en ese archivo. El módulo <i>React</i> se coloca en una variable llamada _React_ y <i>React-DOM</i> en la variable _ReactDOM_.
403403

404-
Muevamos nuestro componente <i>Note</i> a su propio módulo.
404+
Movamos nuestro componente <i>Note</i> a su propio módulo.
405405

406406
En aplicaciones más pequeñas, los componentes generalmente se colocan en un directorio llamado <i>components</i>, que a su vez se ubica dentro del directorio <i>src</i>. La convención es nombrar el archivo después del componente.
407407

src/content/4/en/part4b.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ and by extending the Jest definitions in the <i>package.json</i> as follows
195195
{
196196
//...
197197
"jest": {
198-
"testEnvironment": "node"
198+
"testEnvironment": "node",
199199
"globalTeardown": "./tests/teardown.js" // highlight-line
200200
}
201201
}
@@ -1003,11 +1003,11 @@ Full stack development is <i> extremely hard</i>, that is why I will use all the
10031003
10041004
- I will have my browser developer console open all the time
10051005
- I will use the network tab of the browser dev tools to ensure that frontend and backend are communicating as I expect
1006-
- I will constantly keep on eye the state of the server to make sure that the data sent there by the fronend is saved there as I expect
1007-
- I will keep on eye on the database: does the backend save data there in the right format
1008-
- I progress with small steps
1006+
- I will constantly keep on eye the state of the server to make sure that the data sent there by the frontend is saved there as I expect
1007+
- I will keep an eye on the database: does the backend save data there in the right format
1008+
- I will progress in small steps
10091009
- <i>I will write lots of _console.log_ statements to make sure I understand how the code and the tests behave and to help pinpoint problems</i>
1010-
- If my code does not work, I will not write more code. Instead, I start deleting the code until it works or just return to a state when everything still was still working
1010+
- If my code does not work, I will not write more code. Instead, I start deleting the code until it works or just return to a state when everything was still working
10111011
- <i>If a test does not pass, I make sure that the tested functionality for sure works in the application</i>
10121012
- When I ask for help in the course Discord or Telegram channel or elsewhere I formulate my questions properly, see [here](https://fullstackopen.com/en/part0/general_info#how-to-ask-help-in-discord-telegam) how to ask for help
10131013

src/content/6/en/part6.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ lang: en
66

77
<div class="intro">
88

9-
So far, we have placed the application's state and state logic directly inside React components. When applications grow larger, state management should be moved outside React components. In this part, we will introduce the Redux library, which is currently the most popular solution for managing the state of React applications.
9+
So far, we have placed the application's state and state logic directly inside React components. When applications grow larger, state management should be moved outside React components. In this part, we will introduce the Redux library, which is currently the most popular solution for managing the state of React applications.
10+
11+
We'll learn about the lightweight version of Redux directly supported by React, namely the React context and useRedux hook, as well as the React Query library that simplifies the server state management.
1012

1113
</div>

0 commit comments

Comments
 (0)