Client AJAX
1. React Data Flow
(1) Side Effect
let foo = 'hello';
function bar() {
foo = 'world';
}
bar();
// Since the bar function modifies the global variable foo, bar causes Side Effect(2) Pure Function
(3) React Function Components
2. Effect Hook
(1) Effect Hook
(2) Conditional effect occurrence (dependency array)
(3) API
(4) Effect Function That Executes Only Once
What if there are no dependencies in the dependency list?
(5) Data Fetching: Implementing Filtering in List
Filtering Within Component
Filtering Outside Component: When making API requests outside the component, receive filtered results
3. AJAX
(1) Sending AJAX Requests
Last updated