-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotes.txt
More file actions
67 lines (51 loc) · 1.48 KB
/
Notes.txt
File metadata and controls
67 lines (51 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Why React?
library of js - reusable ui,
created by facebook-use for both web and mobile application.
->Componenets: Navbar.js, Hero.jsx
=>JSX
->Syntax extension for JS,used for react to define ui.JSX allows you to add HTML and JS, in JS file
normal-class
react-className
=>Compoenents in React-
->they split the ui into parts.
->Functional Componenets
->Class Compoenents
=>Props
->Properties-> short form Props
->function1, function2-> used to send certain values between function or class.
->props can only be read, you cannot change value of any prop, not mutable
=>State:
->Working,Sleeping-working state and sleeping state.
->dark state, light state.
->state is an object that determine how a Compoenent render and behave.
->states are local and they are mutable(can be changed).
->used to respons to the user,API responses,or internal logic.
=>Handling Event
->React handles events using this.
=>Conditional rending:
->showing up the ui that matches our condition.
->example:student data- if(pass===true)
->if statement
->ternary operators
->logical && operator
->Logical || operator
=>Lists and key
->use map() operation in reactjs
->CRUD operation-Creat,read,update, and delete
=>Form and input:
->creation
->input
=>React Hooks
->useState
->useEffect
->useContext
->useRef
->useReducer
->useMemo
=>React router
->setting up routes in react.
=>State managment
=>Lifting state up
=>Fetching data from APIs
=>Code spliting and lazy loading
=>Deployment