@@ -17,8 +17,8 @@ Study its functionality and also inspect the Console, the Network tab and the El
17
17
18
18
### Tools
19
19
20
- - Node 16 .x
21
- - NPM 8 .x (update NPM executing ` npm i -g npm ` )
20
+ - Node >= 18 .x
21
+ - NPM >= 9 .x (update NPM executing ` npm i -g npm ` )
22
22
- Unix-like shell (Gitbash/bash/zsh)
23
23
- Chrome >= 100.x
24
24
@@ -47,10 +47,10 @@ Study its functionality and also inspect the Console, the Network tab and the El
47
47
### MVP 1, The Grid
48
48
49
49
- Replicate the ** functionality and DOM** shown in the prototype linked at the top of this README.
50
- - Keep your code inside ` frontend/components/AppFunctional.js ` and ` frontend/components/AppClass.js ` .
50
+ - Keep your code inside ` frontend/components/AppFunctional.js ` .
51
51
- The component exposed by ` AppFunctional.js ` must be a stateful functional component.
52
- - The one in ` AppClass.js ` must be a stateful class-based component .
53
- - The DOM produced by your components must match exactly the DOM in the prototype:
52
+ - The component in ` AppClass.js ` ** is optional ** but can be tackled if desired. It's not required to pass the sprint .
53
+ - The DOM produced by ` AppFunctional ` must match exactly the DOM in the prototype:
54
54
- The hierarchy of HTML elements, their ids, class names etc must be the same.
55
55
- The current square is marked with a capital B and an "active" class name.
56
56
- The submit success and error messages that display on the page come from the API (see Network tab).
@@ -68,7 +68,7 @@ Study its functionality and also inspect the Console, the Network tab and the El
68
68
### MVP 2, Testing
69
69
70
70
- Using ` codegrade_mvp.test.js ` as inspiration, write 5 tests inside ` frontend/components/App.test.js ` :
71
- - From inside the test file, import a component of your choosing, either ` AppClass.js ` or ` AppFunctional.js ` .
71
+ - From inside the test file, import ` AppFunctional.js ` .
72
72
- Test that the visible texts in headings, buttons, links... render on the screen.
73
73
- Test that typing on the input results in its value changing to the entered text.
74
74
@@ -94,4 +94,4 @@ Study its functionality and also inspect the Console, the Network tab and the El
94
94
```
95
95
96
96
- "Product" works hard designing the messages: we must reproduce them faithfully, down to the last comma.
97
- - If you start with Functional, don't switch to Class-Based until Functional is passing all its tests (and vice versa) .
97
+ - ❗ Remember only the functional version is required; the class-based one is recommended but optional .
0 commit comments