0% found this document useful (0 votes)
6 views

React

Uploaded by

1968fathimapa
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

React

Uploaded by

1968fathimapa
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

whyto mecdhwLy 9126 22

he dhim'leywnd - Aiost veonovs hento domue


han wih oatl

CemplerSunanus Huoleslet Qyuuo


.ndying
Imolenbncy
Snw onu Compunennt elaleel
hedm uhe puse

Rules foy
tor sng hoks
. nty funusnol compunendh cowuse bocky
tup len od compoanis

Reajs Uhestale h uuky

tualne iost valne Cunn


she
Sta omd seunb ge fan dtn whichupdaty
’uvale use el in State withe heccto das
alotalne
SedvovJ= nestate (),
Cont [vay
whol s Weelled hoo k
heelet hooeim vuat smdtihanda

Gudupdady Dort
Paanun ochsse veAlet hook
iovedt elimioto he sde elethe
d
clans baned comporert
Rromampla tasts ile ha bom, ktehime deta
homani end-ponto,se hngup absnislung Sioe

yets
Snta
useEfet 4imkiov,A dipendeny
scle elethin ueeled houlk
o un use EFfet in evey nendlor domot pas S
|.

9foun e ed onyohe ngt nendenpus


Qmy emgyomay inm olipendeny
3, c

passte steuti omd pm tn hhe

dependuuyony
Use

3,Eprvp,stuto

Reacl ontent

Lwey shne
aceruis aeompoant te
dalo acemots nee lo erplicdy
tmounechleneld the hel

Avat mamy
Cumpunenbha(eiy
Povton: he oniet.rov d compureth

Com ponúnt wihin tnot vee Yon am puss


wiwin
datu as a mp
be madu avalabe o(wmumiy cumpu ntns
(onsumn: e ont oSm Componen
heuse luntt hook isned t Lome
lornlrt. bnents
atu kom he cor dato w
he
want o acuess

bum
Intunu
Dheu:
Contirt Dheu: it
t
Roat. CrectaConbtly
n ed miney
oeetvalu het illl
lhelchthe dojet bnet
aud cimpone t
tnidihe a the
oln hmghn p e
motehiney

’Snagine w Cne Iawldng a web oplcisy


win omutho compononh thot nc uknuy
eislggdin and so who tho men
Uea
mens passimgn a y Bhrois pnp
theumesoro
hameds
enytopuveno
1t evsures that conmponnhos easiyatens
hemn ethoiai stut emde
togim #logont atay no paop dn
Proupeilug: Prouen pwsire dathow
(omyne, nayhnomumf
Suhms
imuua t enabu

ppi chongimay he
unLnd keenhe urinsyncwhu
osen

menme HTML5 mhnypiCpushStaleeplaut


enent) olep bur utin Syne wiy
.20pStte

alohencompnevs

" Rouky: component Onhocleed inevb


andean ome wmpunnt
Chomainadn c, aute) oVensithne
>Dulot sanels
hyuwedin ovcAe

Rne:ondunaly shumn Conmpnen thot


t oc e n Un pahmathes

crt
Auilen teps the changes im
Mtmny usens Brvse
Wenoy ntiM he
he dchnb
Ulcyes wnu ttne c
c duy
u duesn t n r n e hne
mw
Suhe en cau

Boowser Buiten Steta AP)


pop
Cruhstau,eplaetati crud
utin Synl

hance cd me
atsum6hat e Seneniy lnalexhl
Cndpoy tout

dent Sicle honh


Hash auter: unw potun the
he senver
bount be handled
tees fM ado
ly want nhen
m Heipkul
nt Lomponvb elemonswima
elemen:Tou Gnnpn
lhle mu
uanrie
me
connh me
ny unveerey
umpnm?o
daey elemeshm
hhtmyou
Gehm d
o ma
lhnu Mu
senden.
one hee
ulanby
h elomowts coilaron
dnopmulbpu
youalluws hgmmnh Reouct
Hooks
Basic Houks
Stute-hen datachongnerndor he
> Use
QAESTE Const [ount,e (uund uyeSleCu)
Ihihay
ume
veean desne he une s0m
puss this in

’Use¬fet-till oun when omouñlbd hes


Stte
changes
alnt ("ho Sudto elle’tirst anyumend ouy
3)

(hu))

Depnaíuns
Gmdhy on y mo dependavus |onnyin ne
Addlstee to daendmyr chonge nhos he stis
updoag
uetffet (0>
clt(nlosdeaheU
3) erdmnl
calli
Contaxt-shere Cata/o pusging pop
Const omoods
happy:'o,
Sad:'':

ChecdloContort mod
Cust MoobConto rt-
kntn App(mps)
Pouedadvilue ymood s,hoppyt
<MoodCortot

Canstomooduselontet (Modlontart):
Ccuimg Renendons
vaue does nut eene ne nda
-omutabu

CommUY use Cases element t Tv


-nag matine wIML
anelement humDog
qab
- Whein you erclthuslk

Rel, usekfku3hemveau'
Impoat aiact use

: use Ref(mu)
Cunst mylnput aot
ugeErfect(0>
mylnputhat.eunrent.focus9:

3,c);

Draimyunetnes
Accessmy DoNelsmais

Snn
Aodu er-used
- Uged AY SBte mnangemet v
moMacymog cempso sktaluyi c ina
mne mrecita u 4manuinahley
b use stele pne f foved mhenmy hane
Ihoe stee nana les do pend ne onhha
oY nhem yu ee tohndle cmove comala.
Start arih

koykecahes
Dyedickue e sBute upeloly

supprt Strle

Impnt gOat,suse hucluenh 'neudinkhde


tovyt Countheduw (stot,aisy) ,
sikn(ahntyne onelcle nqgers hinecyen
(are'neremen':
nttunn countstut.couvt +13:
Caye duenemen': type: sh
4couvt
nehrn stle:

funehn that cpatna ahy


inehoy County
tnyt Istute,dypathueReci n (oure nede,
1
ount o);
alnoshowinh ul i ihatuhe
cumpsay eennsnem
he open L
Lcoun]) 3,
Counte erpe
vsl
ne Const
ueMem(f
Coleulauony
ony NUse CAUTIU
rpevslne don dee) asmee mnoteersey
natencomulaiy ne
tunlins ofa
menoiz0 >UseMemo-
Alluws
Actin
/butn tnvoment
ks(09diáratcn button
}</p couvit stete. loun: <p>
Lolins
netn(
no Callhoal -n d o omemui2e ud Dptmif2e
due netion o call back Hune hom
you nee cl to ennt unneooy
nuIl nhe
oeiatin t ceatback funehm

anchmcuekleutl

setCuultoun) momo120 the cick


hondleN
3,[touvu)
thynC
);
3
uselmpnihne handle-t fenchn or lenene hat

nemal stto Y
Fuvchmauy uM outoeeot
Compovd
te me ele thuute
uselayoutErkt - wwnks
>

vinal cpdocescmhilyouycbiy
blue e
Highr Daden commpo
hene ce puwentull tpatn
shaing Cnd Cumpurant cumpsiay
e elogic
ím ouat appiom
Hoc's a Bntiny hat tulcera cumpo nss
ehun nwCompoent iadditnl
and
moY hehavouv

iyoanecopsdole Covimu funche


’ leusadit
*rondtin of Cunems: prumot ho sepercti
Concinstmy inlatng spelrc unalunehiy
(oclhn

Moceumysiws :me cQu Com puse mulhp



Ho c to hid Cumper Compunedoní m
Va hunuonlle
t
Timens&nteryas:opi
nten (mvdviny
ls imont,
SovweOmbSocleeto unidis:
clatu -esta
vent tiny tone,oy bnhey windb Onlnahy
cdasuhman
Al
nes meu alung berchimy' Datu
oev k ôpnctono Asyn -
en mocnn Y
tiied Suehas TDUM, moduly
elles Sice one wnat
SuuvcesY datu Sunsubn
to
lymmey
Dom,e hrouusens
Senven atun dcda thimg mu,
hi Omune yten
ha 1nnans standand the outhic
cOing componng
Opatins Dater
to
heneI0WV
hat
inhoa elet Sico
(Tony Suute=wita lnonMan cont
Stank).
ordnt)
ponend hgherDnden newlomponent cont
-haytncmwetconteug th wcle hoexouh.

LiGecyclemethocs
component tae a dntueyle
in clcss

prviclo clevs i cthovin


hece methoc
handnecl
Aasleg Ue se hingpinuhal dala
manayy
(2hisis oastey Compononth tomh
- Conshu hy
mend caue d hen he Compursn's
hinst Onhized
ConnponntDrdMount-Culec aten tne lompno n
DoM S
has heen ineto co (nothe
tommonly ne dhr clotu tetchívon
Sey
eonont

altu acompunonh tapdctehune


heonhed
ned updtng Durn invepune
oprupoY stede
hang
Allows kocunbhethn meump
nentnomd e-nendn bend Guchan

mcny nppronunity hods cnp

eUsin Conmps t h e n e

umchinal Comporou tquubnt Uing eachouley


bnestato: Ruplo o Aheconshtn tonanuge Steele
usettfe:2epla s
Compunen Drcount,
Componontrdeipdcae' cndiompunend
willUnmunt
ueMemouecouback: heplae shondCompt
Updaeto ophmize werendeng
Events im Reat

pty
uoey eractne hen Onterbas

- uny nanding n jsx


event handllus ouecy
You dehine 3.
usimy cunly baaus
Codle
4buton Oéick: /hondleChewey bu ton

meuming
camolCoue hy eveñ nam
Pouct

-GneObjet thn
eahanlweuenan even ch
ovgumt jutGle cegudonJseenthenlen
even
access ppntiy ulle

humonsto fveMt naudle


- Passmq Gnunhay
cdolMenl evhay
Yonneeda puss
Yoneanaoynny anun huvnsor
bnd muren
onlitk0:) handleCutnyluca (1d)3>
ovceninnh fvet hon
tturllems

elemont (nt e DoM ckcdebnes how event

# has
two ph ses
gventcayhmey
wentbubby
Sunthehe eent
abshacwyynative. Vmusey
tammun n e a t nSynneh eventyiap
na even
hmSubmsotfer emuie meoil
&ellreuemnyro manage intactiswity

Benehitd, Synheheeey

tveng poun
-Pensistant bvenhyeet
-Exent dclgawn
Mana (handie eyens dangeumus
Comwn an nh
babewhy -
pas (t
iune Somefaugmevh
whyinagentaeesedstutu'ttbtonhule)
a
duêNntCompunents
mdhoheviouy
onanoy
heat Componns ln
Componons
Conhulle4
ehnnflonsrgl ue
iye
Coul qesilaytned
ytil cs
hmcvnag S
toyhole

Jepp.- ntho Styele aretely cle d


(omponn
tedeechy pawehudelay bettentnan hytllenll
and
ne
Sqvesyouk
webpeck pP
esgickanet comume pumyvoule
fo mo oa
on Conkiine
vweyCoz o
bebed hme bild lehmey
oKDrUY Pllevmemg mene mantcui
exPe canhe
x nvs
Cummy
h
sturinam Tux
remDiputher
Onchitoc

tuu
{Ach'ovy
utm
arplicaluuny
imeh
mecin

hüldne

You might also like