Modern Full-Stack Development


The Beginning of the State Object



Download 5,64 Mb.
Pdf ko'rish
bet83/107
Sana06.08.2021
Hajmi5,64 Mb.
#140576
1   ...   79   80   81   82   83   84   85   86   ...   107
Bog'liq
Modern Full-Stack Development Using TypeScript, React, Node

 The Beginning of the State Object
Now, it’s finally time to start building the state object itself. This begins very much like 
the state object in MailBag did, with a function:
export function createState(
  inParentComponent: React.Component
) {
  return {
Chapter 11   time for fun: BattleJong, the Client


331
We’re returning an object literal, and I usually like to put all my object fields (or 
properties) first, and that is indeed what we find first:
layout : [ ]
The server, you’ll recall, sends the layout of the board to each client when the game 
begins. This is where that layout gets stored. But something new is presenting itself here
and as a result, I think it’s time for…

Download 5,64 Mb.

Do'stlaringiz bilan baham:
1   ...   79   80   81   82   83   84   85   86   ...   107




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish