Posts
Showing posts from June, 2020
Reactive notes
- Get link
- X
- Other Apps
Not starting with the traditional definitions but some quick one-liner notes about the different parts & pieces of the React. Component in React 1. Defining a Component - Always name your components with upper case first letter. 2. Types - Function components - Class components 3. Ways of holding data - props - prop types (runtime prop validation) - states - setState (merge previous state & current state) 4. Life cycle Saying: All React components must act like pure functions with respect to their props. JSX 1. External domain language, to generate html using JS to build a custom react component. 2. Supports html like syntax in JS. 3. Each element is transformed into a javascript function call. 4. Tran...