0% found this document useful (0 votes)
4 views25 pages

React Notes 2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views25 pages

React Notes 2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

f

' , 1 I
' • f· f .,
oR_. • I . ,'• I ,.. • ,· • •• .. •
- .I .
'
i ' l ' I • • •
.... I

-h1l L te r - :1 ; --c <'.'S: t:s ; i -1-+)


1 GntAf ( C~ ( n ( A ,-b-k ==> {
gJ-
~hk+i
})
!'.
}
ttd im n C
· ·
L~ v>
<lvi > ', { <I ~i >
Zbtdhn, em Wc k, "'f U fJ ~ '?--t-<b~
~/d iv> .

'
, I ,
i I

' I
f. .
set s-1-a-l-e ~s cSl s~ o J,?J U-n e-u. g .

le¾- t Ccucl , se.+Cou o { J _, l.lU' [ o) ;

le+ Up~6lk,G;u~~\;-:
JL
f)./.""?.. \ '·
·- '. I - ,, • '
. ; ..
.. ,· ;
. '--"
~.' ;
i

. ;I
. ! ..
'

Ct Q(' St a YI{ ~) J ' · :_ •, ·...


I j • 1, .' : / - , . .
1

>f ' · ;.
I
I "

gaf &-uin"t ( C. ps.) :::


d~ l 1 se.+9.-\~~
1
"J; , •• •. . . •_ ,
~L . - ' ( ' I '\ \ - I .- .

}) •I - '6')• ! .!~ i ~. • : •:: .•'. '. . •~ '.'.:

j
:,,

--en~-
i ) ; ..
, t

• ,Lu :nq \ '' j !l ~h Y't ' S?~-f-B-~-


:,


. r
• ; • •. '

•• •
t
,
.I
I ••. 1.
... ' .•. -. :·
• .
,
,
0
• '

I
(



-,
I •


' i
I

-the cA-~ -.~ \\ -~;,~~-~-\UL :~ t~ : M l


• •• .•.
M -a ~

--·- ---
u:~.,,1 ~\;
.

-fhe. :;;iJ +i.e.!1


1 ) d f a fttom
) qelfao;J . '' .
I


.
..
Utla () r . . " •,: I

fur&<m ./ 'o f( /' ()


s t-.Je • l • '')
] : : ~ u
Id [ +n I 6'14hl
+ ak 'j·
1

] .u t9 C
Id [ b, , ~eA 1~
u
~ { l 4 k V ' j ';.
h Sett>,rJb ]
fJ [ rrio I
. .• ,
up 4 tt-k h , ~ ( e ) >f.
le-l
Sd t'n L e, 1 "'f°.
v~rUQ,-) .• :
1

1 } ·:
/

'. [
r .

'.· ·;
· -· ,·· \ _;
'1l [ eJ ~
.> (
Qle_ L
,. .
. ••.lef
~~tt-. \I~,aj.
I

-~
1 ,,_ ., ; ! ,:
!

J. -9<l!f., C_ e,
l •,
.,'f ...·-,
• It '

I,j ,,'
' ) ; 1· ,'j • • ,,, •
·! ,\ '". !f"
t-
i
1 \
!
D ~L
i
Pj~·,1·•)' !' t ' • i ••
J l •• • V - '•


I ,,_. • • i
:
.' f
... . . t . r , ',
, . ?
.

.,+
'

t.t«f-tkdr oy_L

;~ -em.ri
f
Sl5
I
., ,
•.. - -.
.

.
'..
..
-(
, .•

"',I !
.
1 I ., ,

' • .I.. . • I
. .. . ,• : <f •
.
•. I


'

~-..._; I .• ! • ~' • ;.
•. \ ' I \ • •

~-
...
'
'
.. ' I

-

... ' .
\ •

I
j

i
' ...

...,- ,' 'l •


::-----.. . . .. • .
;.

I
Ap I r etc\,~, W,(YlA U_8e, t-Hu t / Gtat~ • ::--- • '
>
tkeit & ctJ:c~
Func'kUYl ~1-\t,ubll~ 0 f
\
.
.,
le~ [ u se-tj.6, ge¼ U soU J "" 1,,W. £A~.\-e C[ J )_;
use, Utul C n =q 1 11
' ,

le! Jaw~ -=;-.~e-l-ck C' ~l ); ,•.

f-+ utS . +kn CctuU) • = >1


tlL j
tu-,l • £ C)() (_ ) )

f
• Cf ~pt·D;,)h) -=>.
{ u~ [1'·1~-hJ.
r). ., - . 1. •
.'
A

. }, [J_)
9 , I

tuwu ). • ; ••
t{~ r l

/· J', ' /!
<-..oJ.V , , f
zvJt,. . , ••
J

{U-WU· mDf CC 1i~ 1 <3vo~wJ. 1-) =>:


{ •

~r) ch -= \ t 4 j 1
Z;~ ,.,J.,11 -{ r
, "'1"" - i ~ •. Wb 1-,.,f f
S1tt {_~.wJ} f
Lit>
f
,, -- I .
' .i .. l
•. I t •
I I

'I
Wk~ ,,le ().Se deo1n-up Code r .. ..
\

funcl-ccm Usebfhc+l-kok. 0 1. ..
I I J

'
•l .,


I • L
I •
I • '•.·· • ' f

\
- :
\. . . .
I r I
.: ,, . • .:' !
I
i.,..le e~r,ncrl: use H-ook_g Cn~icl.e .J.ke
J ,k0'1-t 1tfG err con ol H~cme l G-1 d ter n~CJYJ bo
~r,c • - - .- ~ -
l~t?p~, ~.
,l\,,e8 Uf dak -hJTI c~•m . . , wl- LI.)€ ea n Ith~
r UYI ~OY ) u Gt~ l H-ook.
•. ,••• ,.,• \ (\. I
l) t. ' •• • ,o
1
let [ tol..'h1l , sdCoun t] ., tu~ &l ~ie l ),; ,: ·;
k.\- up~ Afe, Couf1k. ,;; U ~> • . :.. : .. , . _ •
1 tt l J~,,, ~) .'.
{ l~~+·1·)·//lf~~k +~r_,
·1···.... - ....
. J. . . . ... ' • .i • •

' 1

f
r ., . ' ,
,. . , ,, . · :
. r. ' .. •, .•~ . .
.I ; r\ f• •
·••''"1 ; • :
/" • ' • ' I ,,• -• " ' • ' I
f.·" ,·."I••
, •
'': ••,iJ q..1
U ¼i:·' to un~;W o1 Iue . ;l,lQtfh ~,ul, p\"U.Y)~? \·;,-;lb q-~ \'}fj,ow
·oi~ · ,1 1
I
o v~\u12 J w12G~ a\e. ( o'). /1 ~ctfc1 vo\ue fn,('(Vcbkl . (

-t \el uro\Je Ct>un~ .-;:, CJ f.


~"-1 eou,, -l Ccv unt- t iJ i
'sA awnt Lc. =>.
1 ..
c.orucl.e 'loo l pc..)
~f) pt+ '1 j
r,
~t

· 1~+ o\~k C.Ou11+~ "" l ) > •


llf

{ se4 Count (_ tou ni +i) .


l~ ( cour,{ 1· :l b). p../3-
{ •

SeJVIU\.0~ ( ~~' ')


1
.
ellJJZ,{

S'cl wv,t ocl CII oqer)



i..
r ,,
Uta t ft«'l (
., i
i) '·

1
. 0 "
: ,. J , ... \ I
' i
t •

;_ I • l ....
I

.. ',
'

• t I • I
4 I
I

cl~ l t.vun't)
'....i

I
•I - - i .. ..t .,.. l
-~- t
I
.,
' " l
. ..' '
I ,_
!

ci)
I
,!•
tt(~unh
1 , . '
,
. .• .I'
,-..,,
. •I I 4
I
(

f

t -

3~t
'·. • •i >. _, •
:• ' ff
I ..., ;

;. .. • It
I '

',
• ...
el~ . . I
\ C :
,..
'J ; J
.. ,I

.
1~_e-wA ,C,~ ol
t. ,, Ocl d ,, ) : l • '
.'
" •~, . t
..· .. -
• l \
. ' 1
I iv;,· l

~-
r' c tet/1)~ JJ .
'

.I

..
'-
.. ,
,I
1 "'
I - I
) ·• • •< I
A
\

•l

..
'. , .
I , '.: ..
!
I
' .. . .r.- . I
\ '"r ... I\\
')
I
.' i

1 ! • •! r
: "' I
.,
1

f

• l.

• l

I
.. .
I
,, '
r-
I \
J .. . • ...
.
I

I
-
' l -

. '' ,,•
/.

' . -
- ,
*',~
.. J . ... t ,J
, • • f'\
.
! ·. .. . . ' ,,

\~ sn am e= =w 1 APP· •. --
.. I
.
~ , , . , , ,. , ' ..,,,.
',

.
l t
' \..,. I.
I -

i -. , ..:_4
',l'' .. , , ,
• \ t
• -

I I

·e
• !
• _._ l
I
'I

.
• '
-
I
.

I
• I
: •, I
I
)

t
C(IJL{J\.h,-1 ()Ill , h~ . . \
i~i:,}tl R.t~ ,1u.u~k \ t-,,m , --.. ,.

.. ).
I

ln1.pollt Gi1.m+t>ll-kc fu~ ·\ ./~itkt-6'1 '.


,:
• . I.... , ,

4
• • •

t~c m. GuJ~ OM-. ({ C-Ou~ 1 f~r um uf~ u,~ 1-~ 1¾)J


1
{ • ' I • •
f

; ••• ' :. ' • '


l \

' tt~k~ ( 1 • I, • ' : • • ,. ' : : .

~d V>
'I f I

I • • ,· '!'' ' ' •• '.. l . - : l


&
I I ., j I
<...... t. '
• I
<~1 >- C1u~ 1(hu( lt} </nj>I
I •

f
- • I

i
I

<?b~
<::buthm. ·crnct~ ~- t~? i.d ~~ }.(
<bu:lhm o-nct~~ {.~ ~} >- --' --< I~ •

L}ctv>. • _ . . ,. , ·_. I
,, • •
- 'I,,,. • 1'

1,,I ' ti \ ! J I

,I
1
,I
'I
I • I

f
I

i
'
'

• I , .'

• r' e
. •I
.'
'

I

• . j "(.
.
' ·,
·1,:• ·\ ~.
' I • I.

'
\

~f\d .,, •
• -·

.
' . -· .

t~n? :t
t) •-_ .' ..
• • ' •:
,'
I

; l
. .
I , • .,,
,=

/ - I ••
- I -~ •

• e~ '

•; \ , · i·I •
/ / j •'v>
t •
"'• l

<.._ OJ

Iii'wo Nlw,ol 2'.~.t1m . j 5-xJ •.. : :-. ,· '. • _, ;..... : .


l/

func_4-t(1"() e.w'l~11Y~~ N')~f,~afc


llY) Uf )

clo C ,r elAtlcj r~.~.:'R~Y,~~-~:··. • I

I-

,~ .t ;{. ~_. ., (.L i;, v>: . -\ - _.· :·.\ _ \ l


- ' .. . '
~rcli;>)
·__ ; t
r --
-6!~ r~+ ~\ehw-f ~~t$f 1~:~o ~1;-11~ " i - t ....
1• •, I • " ,

.......
I
-.. I : '
- , I
I

~- use Memo !-1ook,


• •1
;'

9
- use ~ro o ~e, a ~oo~ r,0~ic~ ~'=> 1.,t ecl -f1?, 0ell>k12__~
'· value. . · . · :.. ·. . - ' • • • .~ 1., •

'
II
.

I '
. .
I
tte-1-utlj) C <dtv>
<_~ i ~ le .,. p ... Y} tm Cl: ~.. , f upJ~1mf-u} > I
C,e-ur1t 1 ~\,( d)-- -1} r lGe .N'U 1 "t 11
f1AA-n
11
• u(') I ,111\.
llfA 1) • ' • q" J
Z:~1. s½t~" t f.--)'} c,n C1c\= l 1 x l~ k ~ ir>
Cow-i-f-1 i w1,1nH } { U
~/ ~: t> •
.,6!cDv>)
1' .
useCallbdck
rt u~eGUback lfJ a ~o o~ uJ ki: ~ 'to use ~ fo mernol6e -}~e.
fuY> c-kcm. • • •
--, It o1 cc ~ ;)._ att 8C ).rt 1en k ~~ Vt e 1 s+ ,a.,cJ
c&fl ~ck_ tcAnc-Rcm vJh ;cJ ) 1,u,dl be e; e,c U.~ W~
-+ha.,re ,/'s 6) o.k &?03 e • 1/) d2-f~ , • •
7 k ~"9 ~v nw >t V) J ~ l f l ~ at O (tr
-4 tu r Ca ti bar\ red w{ 1't l a ~d -ro YI
-t'Y "l~ l1Y "l .f/) '°' o,hdK'jt. U) ~ » " ~
et ~ ~.\- ~,,v d~ ff.lM'"lce • c,'.p- ~ri d-r '<T T, •
use RJ •

di

You might also like