Skip to content

Commit 68969e4

Browse files
author
Antoine RICHARD
committed
feat(docs): rework first slides
1 parent a14a3a0 commit 68969e4

File tree

8 files changed

+90
-46
lines changed

8 files changed

+90
-46
lines changed

docs/markdown/00-school/00-TITLE.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,3 @@
33
# **Welcome to SFEIR School**
44

55
## **React**
6-
7-
##==##
8-
9-
# Déroulement de la formation
10-
11-
<p class="center">
12-
C'est quand la pause ?<br>
13-
Quand est-ce qu'on mange ?<br>
14-
Tour de table ...
15-
</p>
16-
<br><br>
17-
18-
**Feuille de présence (obligatoire)** <!-- .element: class="center" -->
19-
20-
##==##
21-
22-
# Repository
23-
24-
https://github.com/sfeir-open-source/sfeir-school-react <!-- .element: class="center" -->
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!-- .slide: class="center" -->
2+
3+
# Practical information
4+
5+
<p class="center">
6+
When's the break ? <br/>
7+
When do we eat? <br/>
8+
Are there any constraints? <br/>
9+
</p>
10+
<br><br>
11+
12+
**Attendance sheet (required)** <!-- .element: class="center" -->
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!-- .slide: class="center" -->
2+
3+
# Requirements
4+
5+
<p class="center">
6+
Basic knowledge of HTML and CSS <br/>
7+
Basic knowledge of Typescript <br/>
8+
</p>
9+
<br/><br/>
10+
11+
## Technical requirements
12+
13+
Node >= v18 <br/>
14+
npm <br/>
15+
IDE : VSCode or Webstorm recommanded <br/>
File renamed without changes.
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
# Repository
22

33
https://github.com/sfeir-open-source/sfeir-school-react <!-- .element: class="center" -->
4-
5-
##==##
6-
7-
# Requirements
8-
9-
- Node v18
10-
- npm
11-
- A IDE: VSCode or WebStorm recommanded

docs/markdown/00-school/20-what-we-will-do.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,31 @@
22

33
# What we will do
44

5-
* Explore key concepts of React
5+
- **Explore key concepts of React**
66

77
I will show slides and do some live coding
88

9-
* Practice with hands-on exercises
9+
- **Practice with hands-on exercises**
1010

1111
You will code, I will help
1212

13-
* Breaks when appropriate
13+
- **Breaks when appropriate**
1414

1515
Have lunch, play babyfoot
1616

17+
##==##
1718

19+
# What we will do
1820

19-
21+
## Plan
22+
23+
- Module 1 : **Nodes - elements and components**
24+
- Module 2 : **States and events**
25+
- Module 3 : **Lifecycles & DOM**
26+
- Module 4 : **Custom hooks and Higher Order Components**
27+
- Module 5 : **Routing, Context and Suspense API**
28+
- Module 6 : **Forms**
29+
- Module 8 : **Global state management**
30+
- Module 9 : **Components library and testing**
31+
- Module 10 : **Code optimization**
32+
- **Further exploration** : Last React Features (Server Components, Streaming, Partial Hydration ...)
Lines changed: 42 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,64 @@
11
<!-- .slide: class="center" -->
22

3-
# Components
3+
# Some vocabulary
44

5-
<br />
5+
**UI = f(state)**<br/>
6+
user interface is a function of the state. When the state changes, the UI updates.
67

7-
## UI = f(state)
8+
##==##
9+
10+
<!-- .slide: class="center" -->
11+
12+
# Some vocabulary
13+
14+
**UI = f(state)**<br/>
15+
user interface is a function of the state. When the state changes, the UI updates.<br/><br/>
16+
**Component = (props) => Node**<br/>
17+
A React component is simply a function that :
18+
19+
- Takes props as input
20+
- Returns a Node (what you want to render)
821

922
##==##
1023

1124
<!-- .slide: class="center" -->
1225

13-
# Components
26+
# Some vocabulary
1427

15-
<br />
28+
**UI = f(state)**<br/>
29+
user interface is a function of the state. When the state changes, the UI updates.<br/><br/>
30+
**Component = (props) => Node**<br/>
31+
A React component is simply a function that :
1632

17-
## UI = f(state)
33+
<div>
1834

19-
## Element = Component(props)
35+
- Takes props as input
36+
- Returns a Node (what you want to render)<br/><br/>
2037

38+
</div>
39+
40+
**type Node = Element | Fragment | string | null | Node[]**<br/>
41+
This is what you component returns
2142
##==##
2243

2344
<!-- .slide: class="center" -->
2445

25-
# Components
46+
# Some vocabulary
47+
48+
**UI = f(state)**<br/>
49+
user interface is a function of the state. When the state changes, the UI updates.<br/><br/>
50+
**Component = (props) => Node**<br/>
51+
A React component is simply a function that :
2652

27-
<br />
53+
<div>
2854

29-
## UI = f(state)
55+
- Takes props as input
56+
- Returns a Node (what you want to render)<br/><br/>
3057

31-
## Element = Component(props)
58+
</div>
3259

33-
## Component : (props) => Node
60+
**type Node = Element | Fragment | string | null | Node[]**<br/>
61+
This is what you component returns <br/> <br/>
3462

35-
## type Node = Element | Fragment | string | null | Node[]
63+
**Element = Component(props)**<br/>
64+
A React Element is an instance of a Component

docs/scripts/slides.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ function schoolSlides() {
55
const dir = '00-school';
66
return [
77
`${dir}/00-TITLE.md`,
8-
`${dir}/01-wifi.md`,
9-
`${dir}/02-repository.md`,
108
`${dir}/10-speaker-ape.md`,
119
`${dir}/10-speaker-jhe.md`,
1210
`${dir}/10-speaker-jta.md`,
1311
`${dir}/10-speaker-rto.md`,
1412
`${dir}/10-speaker-tsl.md`,
1513
`${dir}/10-speaker-ari.md`,
1614
`${dir}/11-tour-de-table.md`,
15+
`${dir}/12-information.md`,
16+
`${dir}/13-requirements.md`,
17+
`${dir}/14-wifi.md`,
18+
`${dir}/15-repository.md`,
1719
`${dir}/20-what-we-will-do.md`,
1820
];
1921
}

0 commit comments

Comments
 (0)