pdf notes
React Digital Notes_compressed.pdf
React Foundations — Week 5.1 (Study Notes)
Source: Week_5.1.pdf
1. Overview
Short summary: This lecture explains basic React terms and concepts: virtual DOM vs real DOM, state, components, re-rendering, a simple counter app (with code), and React props (how to pass data, destructure props, default values, and passing functions).
2. Why React?
- Traditional DOM manipulation (even with libraries like jQuery) becomes hard for large apps.
- React introduces a new approach and a syntax that the compiler turns into HTML/CSS/JS to simplify building large-scale front-end apps.
Key points
- React helps manage UI complexity.
- It reduces direct manipulation of browser DOM by using an internal representation.
3. Understanding DOMs