Cuándo uno empieza a desarrollar con este lenguaje de programación que a pesar de ser lenguaje para desarrollo y no para producción se encuentra con muchas cosas diferentes a lo que uno está acostumbrado y a veces puede resultar frustrante como interesante.  Este monje programación tiene propósito de evitar errores durante desarrollo y que la aplicación no lleve a errores más grandes en producción por lo tanto obliga a que el usuario que está desarrollando el código especifique qué resultados o qué tipo de datos se van a utilizar. <blockquote> This programming approach aims to prevent errors during development and prevent the application from leading to larger errors in production. Therefore, it requires the user developing the code to specify what results or what type of data will be used. </blockquote> https://images.hive.blog/DQmSgtdvY5zyewPtP3bJ3awEF3LvV3RTgxJeKw54ymwHj1E/state1.jpg Para este caso simplemente mostraré cómo a través de propiedades se puede pasar una función de react pero que en el componente hijo se debe especificar qué hará esta función y qué tipo de dato recibirá esta función como parámetro. <blockquote> For this case, I will simply show how a react function can be passed through properties, but in the child component, you must specify what this function will do and what type of data this function will receive as a parameter. </blockquote> https://images.hive.blog/DQmbweWzupXvaMgwEW2DCZfsuRrtCyh5qUM9iuefkGwrtrL/state2.jpg A simple vista parece un poquito complejo de entender pero la función lo único que hace es decir que espera un cambio en el estado y que este mismo cambio será del tipo booleano. <blockquote> At first glance it seems a little complex to understand, but the function only says that it expects a change in state and that this same change will be of the Boolean type. </blockquote>
author | dobro2020 |
---|---|
permlink | como-especificar-el-tipo-de-hook-en-typescrypt-esp-eng |
category | hive-196387 |
json_metadata | {"tags":["hive-196387","bbh","stemgeeks","spanish","stemng","stemsocial","coding","waiv"],"image":["https://images.hive.blog/DQmP9iakeAg4fPZJ3FXedLByTBBZFUkq3U6LJCZCd5hbPnz/state.jpg","https://images.hive.blog/DQmSgtdvY5zyewPtP3bJ3awEF3LvV3RTgxJeKw54ymwHj1E/state1.jpg","https://images.hive.blog/DQmbweWzupXvaMgwEW2DCZfsuRrtCyh5qUM9iuefkGwrtrL/state2.jpg"],"app":"hiveblog/0.1","format":"markdown"} |
created | 2025-05-07 03:07:21 |
last_update | 2025-05-07 03:07:21 |
depth | 0 |
children | 1 |
last_payout | 2025-05-14 03:07:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 1.010 HBD |
curator_payout_value | 0.974 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,943 |
author_reputation | 65,284,576,433,189 |
root_title | "Cómo especificar el tipo de Hook en typescrypt [ESP-ENG]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 0 |
post_id | 142,568,562 |
net_rshares | 5,420,080,664,232 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
xeldal | 0 | 876,341,575,094 | 2.5% | ||
adol | 0 | 210,410,433,211 | 2.5% | ||
enki | 0 | 539,562,581,157 | 2.5% | ||
kevinwong | 0 | 1,334,685,443 | 0.6% | ||
eric-boucher | 0 | 3,393,935,397 | 0.6% | ||
roelandp | 0 | 58,278,037,199 | 5% | ||
cloh76 | 0 | 824,705,638 | 0.6% | ||
sunshine | 0 | 3,423,819,018 | 0.6% | ||
rmach | 0 | 987,079,067 | 5% | ||
lemouth | 0 | 321,050,688,103 | 10% | ||
someguy123 | 0 | 3,731,188,927 | 0.6% | ||
tfeldman | 0 | 1,138,977,608 | 0.6% | ||
metabs | 0 | 1,153,941,925 | 10% | ||
mcsvi | 0 | 103,346,731,852 | 50% | ||
boxcarblue | 0 | 3,848,019,378 | 0.6% | ||
justyy | 0 | 10,505,239,344 | 1.2% | ||
michelle.gent | 0 | 735,318,390 | 0.24% | ||
curie | 0 | 80,241,029,449 | 1.2% | ||
modernzorker | 0 | 602,314,155 | 0.84% | ||
techslut | 0 | 26,669,925,872 | 4% | ||
steemstem | 0 | 186,451,422,265 | 10% | ||
valth | 0 | 907,346,346 | 5% | ||
metroair | 0 | 7,007,396,890 | 1.2% | ||
driptorchpress | 0 | 464,297,123 | 0.3% | ||
dna-replication | 0 | 348,773,207 | 10% | ||
dhimmel | 0 | 5,728,519,378 | 2.5% | ||
oluwatobiloba | 0 | 3,813,299,457 | 100% | ||
detlev | 0 | 7,927,280,356 | 0.36% | ||
gamersclassified | 0 | 849,126,848 | 0.6% | ||
forykw | 0 | 4,144,258,036 | 0.6% | ||
eliel | 0 | 876,041,959 | 1.2% | ||
jerrybanfield | 0 | 4,726,748,496 | 1.2% | ||
bitrocker2020 | 0 | 2,484,186,272 | 0.24% | ||
ohamdache | 0 | 754,061,511 | 0.6% | ||
sustainablyyours | 0 | 686,368,251 | 5% | ||
helo | 0 | 8,567,115,336 | 5% | ||
arunava | 0 | 3,539,526,315 | 0.48% | ||
juancar347 | 0 | 5,060,684,187 | 0.6% | ||
samminator | 0 | 5,771,213,108 | 5% | ||
enjar | 0 | 12,909,151,741 | 1.08% | ||
lorenzor | 0 | 1,352,748,038 | 50% | ||
alexander.alexis | 0 | 6,677,502,666 | 10% | ||
jayna | 0 | 1,801,478,948 | 0.24% | ||
princessmewmew | 0 | 1,558,150,545 | 0.6% | ||
joeyarnoldvn | 0 | 452,607,387 | 1.47% | ||
pipiczech | 0 | 519,821,366 | 1.2% | ||
empath | 0 | 1,782,082,211 | 1.02% | ||
minnowbooster | 0 | 765,497,323,332 | 20% | ||
felt.buzz | 0 | 1,762,926,632 | 0.3% | ||
howo | 0 | 165,371,710,101 | 10% | ||
tsoldovieri | 0 | 1,036,594,074 | 5% | ||
neumannsalva | 0 | 1,112,740,132 | 0.6% | ||
stayoutoftherz | 0 | 41,861,222,458 | 0.3% | ||
abigail-dantes | 0 | 3,846,455,245 | 10% | ||
coindevil | 0 | 664,721,470 | 0.96% | ||
pixelfan | 0 | 58,564,041,119 | 6.6% | ||
investingpennies | 0 | 3,610,631,966 | 1.2% | ||
val.halla | 0 | 2,869,753,262 | 10% | ||
iamphysical | 0 | 23,575,723,307 | 90% | ||
azulear | 0 | 738,944,304 | 100% | ||
psicoluigi | 0 | 813,534,120 | 50% | ||
aidefr | 0 | 1,177,189,331 | 5% | ||
cloudspyder | 0 | 593,732,098 | 100% | ||
inthenow | 0 | 25,310,692,638 | 20% | ||
pixresteemer | 0 | 38,808,059,036 | 11% | ||
splash-of-angs63 | 0 | 13,087,021,808 | 50% | ||
dauerossi | 0 | 7,021,235,521 | 30% | ||
meno | 0 | 12,790,288,535 | 0.6% | ||
buttcoins | 0 | 10,250,467,784 | 0.24% | ||
enzor | 0 | 632,513,764 | 10% | ||
bartosz546 | 0 | 609,496,408 | 0.6% | ||
sunsea | 0 | 1,614,742,424 | 0.6% | ||
bluefinstudios | 0 | 999,026,004 | 0.36% | ||
steveconnor | 0 | 1,136,586,890 | 0.6% | ||
feltoxxx | 0 | 9,559,958,005 | 100% | ||
aboutcoolscience | 0 | 3,066,062,766 | 10% | ||
kenadis | 0 | 2,705,713,882 | 10% | ||
madridbg | 0 | 2,381,672,074 | 10% | ||
robotics101 | 0 | 3,087,722,662 | 10% | ||
r00sj3 | 0 | 461,034,373 | 5% | ||
sco | 0 | 3,198,398,874 | 10% | ||
ennyta | 0 | 990,836,136 | 50% | ||
juecoree | 0 | 644,308,933 | 7% | ||
gabrielatravels | 0 | 860,264,133 | 0.42% | ||
eliaschess333 | 0 | 27,345,662,463 | 100% | ||
hetty-rowan | 0 | 480,746,153 | 0.6% | ||
ydavgonzalez | 0 | 4,702,213,605 | 10% | ||
intrepidphotos | 0 | 2,662,528,333 | 7.5% | ||
fineartnow | 0 | 897,170,421 | 0.6% | ||
oscarina | 0 | 744,600,620 | 10% | ||
aiziqi | 0 | 1,096,667,378 | 5% | ||
steemvault | 0 | 503,532,833 | 1.2% | ||
utube | 0 | 876,542,441 | 1.2% | ||
m1alsan | 0 | 1,143,513,425 | 1.2% | ||
neneandy | 0 | 1,342,773,740 | 1.2% | ||
marc-allaria | 0 | 480,523,283 | 0.6% | ||
sportscontest | 0 | 1,249,244,075 | 1.2% | ||
pandasquad | 0 | 3,459,057,837 | 1.2% | ||
miguelangel2801 | 0 | 794,441,376 | 50% | ||
mproxima | 0 | 785,319,349 | 0.6% | ||
fantasycrypto | 0 | 860,727,386 | 1.2% | ||
emiliomoron | 0 | 891,552,215 | 5% | ||
photohunt | 0 | 735,073,385 | 1.2% | ||
geopolis | 0 | 625,651,266 | 10% | ||
ajfernandez | 0 | 816,418,282 | 100% | ||
robertbira | 0 | 1,040,493,863 | 2.5% | ||
alexdory | 0 | 1,846,309,837 | 10% | ||
takowi | 0 | 25,071,861,871 | 1.2% | ||
irgendwo | 0 | 3,987,641,634 | 1.2% | ||
charitybot | 0 | 1,382,157,996 | 100% | ||
cyprianj | 0 | 52,503,587,361 | 100% | ||
melvin7 | 0 | 17,318,133,338 | 5% | ||
francostem | 0 | 1,349,273,576 | 10% | ||
endopediatria | 0 | 695,806,150 | 20% | ||
chrislybear | 0 | 1,589,705,335 | 0.6% | ||
croctopus | 0 | 1,532,335,570 | 100% | ||
jjerryhan | 0 | 1,523,945,570 | 0.6% | ||
putu300 | 0 | 933,496,860 | 5% | ||
zipporah | 0 | 582,314,419 | 0.24% | ||
superlotto | 0 | 1,242,122,807 | 1.2% | ||
satren | 0 | 18,480,555,687 | 10% | ||
bscrypto | 0 | 3,693,082,230 | 0.6% | ||
movingman | 0 | 588,859,250 | 20% | ||
delpilar | 0 | 934,959,443 | 25% | ||
tomastonyperez | 0 | 17,069,552,215 | 50% | ||
bil.prag | 0 | 591,556,646 | 0.06% | ||
elvigia | 0 | 11,132,364,167 | 50% | ||
sanderjansenart | 0 | 1,257,093,313 | 0.6% | ||
qberry | 0 | 900,596,469 | 0.6% | ||
therising | 0 | 25,548,109,776 | 1.2% | ||
cryptocoinkb | 0 | 456,635,686 | 0.6% | ||
de-stem | 0 | 5,475,798,178 | 9.9% | ||
imcore | 0 | 864,040,629 | 10% | ||
josedelacruz | 0 | 5,223,976,403 | 50% | ||
charitymemes | 0 | 526,448,975 | 100% | ||
softa | 0 | 942,635,745 | 0.24% | ||
erickyoussif | 0 | 658,894,002 | 100% | ||
primersion | 0 | 514,173,176,766 | 20% | ||
deholt | 0 | 542,290,974 | 8.5% | ||
celinavisaez | 0 | 11,393,240,431 | 30% | ||
pladozero | 0 | 9,430,298,214 | 10% | ||
minerthreat | 0 | 919,060,963 | 0.6% | ||
nateaguila | 0 | 59,562,135,245 | 5% | ||
temitayo-pelumi | 0 | 947,267,689 | 10% | ||
hmayak | 0 | 4,950,467,917 | 50% | ||
kumpel | 0 | 1,888,648,799 | 50% | ||
andrick | 0 | 863,743,387 | 50% | ||
carilinger | 0 | 20,970,702,252 | 2.5% | ||
doctor-cog-diss | 0 | 9,877,761,632 | 10% | ||
dailyspam | 0 | 22,977,077,767 | 20% | ||
musicvoter2 | 0 | 694,310,910 | 1% | ||
realkiki85 | 0 | 5,818,672,439 | 100% | ||
acont | 0 | 1,471,265,050 | 50% | ||
uche-nna | 0 | 1,738,607,186 | 0.96% | ||
vietthuy | 0 | 809,015,082 | 50% | ||
yougotavote | 0 | 3,768,337,793 | 100% | ||
cheese4ead | 0 | 919,796,969 | 0.6% | ||
nattybongo | 0 | 3,772,770,518 | 10% | ||
talentclub | 0 | 767,836,583 | 0.6% | ||
bflanagin | 0 | 452,643,768 | 0.6% | ||
ubaldonet | 0 | 4,369,536,809 | 80% | ||
armandosodano | 0 | 1,372,003,729 | 0.6% | ||
goblinknackers | 0 | 82,288,581,792 | 7% | ||
reinaseq | 0 | 8,712,175,435 | 100% | ||
kylealex | 0 | 5,329,359,639 | 10% | ||
fran.frey | 0 | 4,202,305,814 | 50% | ||
pboulet | 0 | 16,960,864,362 | 8% | ||
stem-espanol | 0 | 2,461,303,411 | 100% | ||
futurekr | 0 | 1,166,415,656 | 100% | ||
cliffagreen | 0 | 5,831,235,233 | 10% | ||
aleestra | 0 | 15,463,833,383 | 80% | ||
the.success.club | 0 | 767,047,050 | 0.6% | ||
giulyfarci52 | 0 | 1,717,876,139 | 50% | ||
multifacetas | 0 | 740,378,319 | 0.6% | ||
cakemonster | 0 | 643,297,968 | 1.2% | ||
stem.witness | 0 | 569,540,989 | 10% | ||
hiddendragon | 0 | 646,188,988 | 38% | ||
double-negative | 0 | 523,493,653 | 20% | ||
vaultec | 0 | 126,391,185,149 | 12% | ||
steemstorage | 0 | 1,573,405,530 | 1.2% | ||
aqua.nano | 0 | 651,443,961 | 100% | ||
hairgistix | 0 | 706,090,508 | 0.6% | ||
rem-steem | 0 | 784,742,326 | 0.6% | ||
instagram-models | 0 | 2,982,911,671 | 0.6% | ||
steemean | 0 | 10,107,116,149 | 5% | ||
killerbot | 0 | 506,771,372 | 50% | ||
littlesorceress | 0 | 1,284,840,776 | 1.2% | ||
newton666 | 0 | 879,085,227 | 100% | ||
kggymlife | 0 | 4,008,527,587 | 20% | ||
robibasa | 0 | 32,599,869,608 | 10% | ||
justlee87 | 0 | 2,455,294,271 | 100% | ||
qwerrie | 0 | 1,288,653,265 | 0.09% | ||
michelmake.util | 0 | 2,676,794,696 | 100% | ||
walterprofe | 0 | 12,525,506,619 | 10% | ||
zeruxanime | 0 | 1,055,526,150 | 5% | ||
kgswallet | 0 | 535,159,896 | 10% | ||
reggaesteem | 0 | 507,744,081 | 5% | ||
dechuck | 0 | 8,863,087,457 | 50% | ||
pal.alfa | 0 | 9,018,525,258 | 100% | ||
steemstem-trig | 0 | 166,113,833 | 10% | ||
baltai | 0 | 1,609,576,930 | 0.6% | ||
dmoonfire | 0 | 35,792,721,549 | 71% | ||
ibt-survival | 0 | 36,289,980,203 | 10% | ||
jennyferandtony | 0 | 1,445,076,010 | 100% | ||
tempravis | 0 | 1,853,755,976 | 33% | ||
bilpcoinbpc | 0 | 883,634,246 | 5% | ||
seraphiel | 0 | 6,508,030,520 | 50% | ||
hive-199963 | 0 | 1,242,681,521 | 1.2% | ||
monica-ene | 0 | 476,694,986 | 0.6% | ||
stemsocial | 0 | 83,399,990,956 | 10% | ||
holoferncro | 0 | 3,925,153,432 | 10% | ||
kiemurainen | 0 | 1,686,502,948 | 0.5% | ||
noelyss | 0 | 2,239,733,430 | 5% | ||
quinnertronics | 0 | 15,919,015,199 | 7% | ||
r-nyn | 0 | 15,711,503,846 | 11% | ||
altleft | 0 | 5,022,111,094 | 0.01% | ||
meritocracy | 0 | 15,743,674,282 | 0.12% | ||
dcrops | 0 | 4,776,270,799 | 0.6% | ||
whywhy | 0 | 539,090,269 | 0.33% | ||
yozen | 0 | 1,687,834,868 | 0.6% | ||
tawadak24 | 0 | 929,768,972 | 0.6% | ||
failingforwards | 0 | 743,560,113 | 0.6% | ||
drricksanchez | 0 | 3,508,908,165 | 0.6% | ||
nfttunz | 0 | 2,046,675,487 | 0.12% | ||
okluvmee | 0 | 818,386,729 | 0.6% | ||
merit.ahama | 0 | 895,941,147 | 0.36% | ||
holovision.cash | 0 | 4,832,819,855 | 100% | ||
t-nil | 0 | 519,049,936 | 10% | ||
badge-646464 | 0 | 428,845,290 | 1.2% | ||
aries90 | 0 | 12,309,660,006 | 1.2% | ||
migka | 0 | 5,443,517,304 | 90% | ||
rynos-6 | 0 | 2,985,665,856 | 100% | ||
waivio.curator | 0 | 2,360,246,441 | 4.47% | ||
newilluminati | 0 | 3,671,541,924 | 0.6% | ||
lichtkunstfoto | 0 | 1,859,318,173 | 1.2% | ||
lukasbachofner | 0 | 1,040,505,117 | 0.6% | ||
azj26 | 0 | 3,033,452,390 | 16% | ||
prosocialise | 0 | 24,177,494,540 | 5% | ||
belug | 0 | 1,490,959,837 | 0.36% | ||
mugueto2022 | 0 | 559,335,621 | 20% | ||
soyjoselopez | 0 | 459,025,285 | 20% | ||
inibless | 0 | 1,110,542,477 | 5% | ||
benefice-net | 0 | 48,433,135 | 75% | ||
callmesmile | 0 | 697,428,311 | 0.6% | ||
justfavour | 0 | 964,110,497 | 0.6% | ||
jijisaurart | 0 | 535,494,047 | 0.6% | ||
smariam | 0 | 2,828,766,111 | 25% | ||
osran | 0 | 2,089,580,557 | 100% | ||
wasined | 0 | 4,051,321,631 | 1.2% | ||
clpacksperiment | 0 | 637,938,560 | 0.6% | ||
ambicrypto | 0 | 30,963,530,859 | 1.2% | ||
humbe | 0 | 6,856,068,732 | 2% | ||
jhymi | 0 | 1,406,262,233 | 0.6% | ||
argo8 | 0 | 1,365,253,341 | 0.6% | ||
rhemagames | 0 | 1,160,203,146 | 0.6% | ||
thewobs94 | 0 | 1,837,247,321 | 100% | ||
profwhitetower | 0 | 2,124,724,991 | 5% |
<div class='text-justify'> <div class='pull-left'> <img src='https://stem.openhive.network/images/stemsocialsupport7.png'> </div> Thanks for your contribution to the <a href='/trending/hive-196387'>STEMsocial community</a>. Feel free to join us on <a href='https://discord.gg/9c7pKVD'>discord</a> to get to know the rest of us! Please consider delegating to the @stemsocial account (85% of the curation rewards are returned). Consider setting @stemsocial as a beneficiary of this post's rewards if you would like to support the community and contribute to its mission of promoting science and education on Hive. <br /> <br /> </div>
author | stemsocial |
---|---|
permlink | re-dobro2020-como-especificar-el-tipo-de-hook-en-typescrypt-esp-eng-20250507t202000590z |
category | hive-196387 |
json_metadata | {"app":"STEMsocial"} |
created | 2025-05-07 20:20:00 |
last_update | 2025-05-07 20:20:00 |
depth | 1 |
children | 0 |
last_payout | 2025-05-14 20:20:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 646 |
author_reputation | 22,902,701,722,118 |
root_title | "Cómo especificar el tipo de Hook en typescrypt [ESP-ENG]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 142,584,720 |
net_rshares | 0 |