├── lessons
├── L03_managing-state
│ ├── index.js
│ ├── index.html
│ ├── solution.js
│ └── L03_managing-state.md
├── L02_mental-model
│ ├── index.html
│ ├── homework.js
│ ├── index.js
│ └── L02_mental-model.md
├── L04_separation
│ ├── index.html
│ ├── L04_separation.md
│ ├── solution.js
│ ├── index.js
│ └── solution2.js
├── L00_getting-started
│ └── L00_getting-started.md
└── L01_introduction
│ └── L01_introduction.md
├── README.md
└── lib
├── normalize.css
└── react.development.js
/lessons/L03_managing-state/index.js:
--------------------------------------------------------------------------------
1 | function App() {
2 | return "Fix me!";
3 | }
4 |
5 | ReactDOM.render(
6 |
{count}
13 | 24 |{currentSong}
43 |{pause ? "หยุด" : "กำลังเล่น"}
44 | 45 | 46 | 47 |22 | {note.title} 23 |
24 |25 | {(note.content || "").slice(0, 40)} 26 |
27 |{note.title}
5 |{(note.content || "").slice(0, 40)}
6 |27 | {note.title} 28 |
29 |30 | {(note.content || "").slice(0, 40)} 31 |
32 |{note.title}
5 |{(note.content || "").slice(0, 40)}
6 |