# Translating 527 words of Facebook React  <center>[[Source]](https://res.cloudinary.com/hpiynhbhq/image/upload/v1513971596/cgqm9jaxhlgg9m9ss5ww.png)</center> Today I finished translating implementation-notes.md from 55% to 66% total of 527 words.  You may check my activity on this link: https://crowdin.com/project/react/fil/activity - And here are the few Examples of my translation: >// Hanapin ang lumang node dahil kinakailangan nitong mapalitan var prevNode = prevRenderedComponent.getHostNode(); // I-unmount ang lumang child ay i-mount ang bagong child prevRenderedComponent.unmount(); var nextRenderedComponent = instantiateComponent(nextRenderedElement); var nextNode = nextRenderedComponent.mount(); // palitana ng reperensya sa child this.renderedComponent = nextRenderedComponent; // Palitan ang lumang node ng bago // Tandaan: ito ay isang renderer-specific na code at // kung iisipin dapat itoy nasalabas ng CompositeComponent: prevNode.parentNode.replaceChild(nextNode, prevNode); } } implementation-notes.md 02:38 PM // Kung tayo ay nasa punto ng ito, kailangan nating i-unmount ang nakalipas na // na-mount ng komponent, I-mount ang isang bago, at pagpalitin ang kanilang mga node. implementation-notes.md 02:35 PM Halimbawa, ito ang mangyayari kapag ang komponent na na-render na ang isang <code><button /></code> ay nag render ng isang <code><input /></code>: implementation-notes.md 02:34 PM Sa halip, kailangan nating i-unmount ang umiiral ng panloob na instance and i-mount ang isang bagong nararapat para sa na-render na uri ng elemento. implementation-notes.md 01:53 PM Ang <code><button></code> ay hindi maaring "maging" isang <code><input></code>. implementation-notes.md 01:52 PM Gayunpaman, kung ang susunod na na-render na elemento ay may ibang <code>type</code> kesa sa naunang na render na elemento, hindi natin maaaring i-update ang panloob na instance. implementation-notes.md 01:51 PM if (prevRenderedElement.type === nextRenderedElement.type) { prevRenderedComponent.receive(nextRenderedElement); return; } // ... implementation-notes.md 01:50 PM // Kung ang pag-render ng uri ng elemento ay hindi nabago, // muling gamitin ang umiiral ng komponent ng instance at lumabas. implementation-notes.md 01:50 PM Halimbawa, kung ito ay nagbalik ng <code><Button color="red" /></code> ng unang beses, at ng <code><Button color="blue" /></code> ng ikalawang beses, maari lang nating sabihin sa kaukulang panloob na intance sa <code>receive()</code> sa susunod na elemento: implementation-notes.md 01:49 PM Susunod, maaari nating tingnan ang na-render na <code>type</code> ng elemento. Kung ang <code>type</code> ay hindi nabago simula ng huling pag-render, ang komponent sa ibaba ay maari ding ma update sa kanyang pwesto. implementation-notes.md 01:47 PM receive(nextElement) { var prevProps = this.currentElement.props; var publicInstance = this.publicInstance; var prevRenderedComponent = this.renderedComponent; var prevRenderedElement = prevRenderedComponent.currentElement; // I-update ang *sariling* elemento this.currentElement = nextElement; var type = nextElement.type; var nextProps = nextElement.props; // Alamin kung ano ang susunod na output ng render() var nextRenderedElement; if (isClass(type)) { // class ng komponent // Tawagin ang lifecycle kung kinakailangan if (publicInstance.componentWillUpdate) { publicInstance.componentWillUpdate(nextProps); } /... implementation-notes.md 01:45 PM At ating muling i-rerender ang komponent sa pamamagitan ng mga bagong prop, at makuha ang susunod na na-render na elemnto: implementation-notes.md 01:42 PM Kapag ang isang composite na komponent ay nakatanggap ng bagong elemnto, pinapagana namin ang <code>componentWillUpdate()</code> na lifecycle hook. implementation-notes.md 12:55 PM Ina-update ang Composite na mga Komponent implementation-notes.md 12:35 PM Ang parteng ito ay karaniwang inilalarawan bilang isang "virtual DOM diffing" kahit na ang talagang nangyayari ay lumalakad kame sa loob ng tree ng recursibo at hinahayaang ang mga panloob na instanse ay makatanggap ng update. implementation-notes.md 12:35 PM Ang trabaho nito ay gawin ang mga kinakailangan para madala ang komponent (at alin man sa mga children nito) sa pinaka bago na may deskripsyong ibinigay ng <code>nextElement</code>. implementation-notes.md 12:33 PM class CompositeComponent { // ... receive(nextElement) { // ... } } class DOMComponent { // ... receive(nextElement) { // ... } } implementation-notes.md 12:32 PM Bukod pa dito ang <code>mount()</code> at <code>unmount()</code>, parehong ang <code>DOMComponent</code> at <code>CompositeComponent</code> ay mag-iimplementa ng mga bagong metod na tinatawag na <code>receive(nextElement)</code>: implementation-notes.md 12:32 PM Aming ipaaabot ang kontrata ng panloob na instance sa isa pang paraan. implementation-notes.md 12:31 PM var rootEl = document.getElementById('root'); mountTree(<App />, rootEl); // Dapat muling gamitin ang umiiral ng DOM: mountTree(<App />, rootEl); implementation-notes.md 12:30 PM >Ang layunin ng reconcicler ay muling gamitin ang mga intance na posibleng ma maingatan ang DOM at ang estado nito: implementation-notes.md 12:27 PM Gayunpaman ang React ay hindi kapaki-pakinabang kung ang bawat prop ay babaguhin ang na-unmount at na-mount na buong tree. implementation-notes.md 12:26 PM Sa nakaraang seksyon, kami ay nagimplementa ng pag-unmount. implementation-notes.md 12:25 PM <br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@ruah/translating-527-words-of-facebook-react">Utopian.io - Rewarding Open Source Contributors</a></em><hr/>
author | ruah | ||||||
---|---|---|---|---|---|---|---|
permlink | translating-527-words-of-facebook-react | ||||||
category | utopian-io | ||||||
json_metadata | "{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":10270250,"name":"react","full_name":"facebook/react","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars3.githubusercontent.com/u/69631?v=4","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/react","description":"A declarative, efficient, and flexible JavaScript library for building user interfaces.","fork":false,"url":"https://api.github.com/repos/facebook/react","forks_url":"https://api.github.com/repos/facebook/react/forks","keys_url":"https://api.github.com/repos/facebook/react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/react/teams","hooks_url":"https://api.github.com/repos/facebook/react/hooks","issue_events_url":"https://api.github.com/repos/facebook/react/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/react/events","assignees_url":"https://api.github.com/repos/facebook/react/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/react/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/react/tags","blobs_url":"https://api.github.com/repos/facebook/react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/react/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/react/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/react/languages","stargazers_url":"https://api.github.com/repos/facebook/react/stargazers","contributors_url":"https://api.github.com/repos/facebook/react/contributors","subscribers_url":"https://api.github.com/repos/facebook/react/subscribers","subscription_url":"https://api.github.com/repos/facebook/react/subscription","commits_url":"https://api.github.com/repos/facebook/react/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/react/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/react/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/react/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/react/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/react/merges","archive_url":"https://api.github.com/repos/facebook/react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/react/downloads","issues_url":"https://api.github.com/repos/facebook/react/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/react/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/react/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/react/labels{/name}","releases_url":"https://api.github.com/repos/facebook/react/releases{/id}","deployments_url":"https://api.github.com/repos/facebook/react/deployments","created_at":"2013-05-24T16:15:54Z","updated_at":"2017-12-22T19:13:38Z","pushed_at":"2017-12-22T19:05:51Z","git_url":"git://github.com/facebook/react.git","ssh_url":"git@github.com:facebook/react.git","clone_url":"https://github.com/facebook/react.git","svn_url":"https://github.com/facebook/react","homepage":"https://reactjs.org","size":132414,"stargazers_count":84047,"watchers_count":84047,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":15919,"mirror_url":null,"archived":false,"open_issues_count":461,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":15919,"open_issues":461,"watchers":84047,"default_branch":"master","score":142.72455},"pullRequests":[],"platform":"github","type":"translations","tags":["utopian-io","facebook-react","translation","philippines"],"links":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1513971596/cgqm9jaxhlgg9m9ss5ww.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1513971715/tumtvpc4zxsmxjtk607a.png"],"image":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1513971596/cgqm9jaxhlgg9m9ss5ww.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1513971715/tumtvpc4zxsmxjtk607a.png"]}" | ||||||
created | 2017-12-22 19:43:24 | ||||||
last_update | 2017-12-22 19:43:24 | ||||||
depth | 0 | ||||||
children | 2 | ||||||
last_payout | 2017-12-29 19:43:24 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 16.770 HBD | ||||||
curator_payout_value | 6.683 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 5,881 | ||||||
author_reputation | 55,491,574,280,489 | ||||||
root_title | "Translating 527 words of Facebook React" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 24,747,610 | ||||||
net_rshares | 4,869,499,444,883 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
donchate | 0 | 1,294,638,843 | 20% | ||
saiku | 0 | 2,722,962,581 | 20% | ||
trueart | 0 | 3,116,558,261 | 20% | ||
jassennessaj | 0 | 38,051,129,292 | 30% | ||
st3llar | 0 | 911,163,439 | 5% | ||
fadhil.flash | 0 | 522,843,954 | 100% | ||
dandalion | 0 | 48,815,166,722 | 100% | ||
andravasko | 0 | 1,663,813,292 | 100% | ||
arie.steem | 0 | 14,104,886,749 | 50% | ||
julstamban | 0 | 9,354,559,538 | 30% | ||
xoxois | 0 | 641,176,537 | 100% | ||
vandadream | 0 | 863,685,381 | 100% | ||
sorucevap | 0 | 11,610,373,203 | 5% | ||
ruah | 0 | 45,446,092,847 | 100% | ||
wackymacky | 0 | 535,711,504 | 100% | ||
rockyrod | 0 | 617,220,000 | 100% | ||
utopian-io | 0 | 4,652,447,569,814 | 3.26% | ||
toffer | 0 | 15,085,224,423 | 100% | ||
leonardo1967 | 0 | 740,234,301 | 100% | ||
rodylina | 0 | 888,603,465 | 100% | ||
hardcorevoter | 0 | 617,330,283 | 100% | ||
ardee867 | 0 | 425,165,101 | 100% | ||
paul02 | 0 | 615,320,000 | 100% | ||
cryptohurri | 0 | 624,727,570 | 100% | ||
leinardjames | 0 | 606,090,200 | 100% | ||
oliwaw | 0 | 881,997,846 | 100% | ||
brainfarts | 0 | 11,692,423,931 | 20% | ||
blueleaf69247 | 0 | 1,177,144,479 | 100% | ||
anggaariska | 0 | 996,343,801 | 100% | ||
marou27 | 0 | 625,078,551 | 100% | ||
mariejoyacajes | 0 | 661,106,397 | 100% | ||
marga27 | 0 | 1,143,102,578 | 100% |
Thank you for the contribution. It has been approved. You can contact us on [Discord](https://discord.gg/UCvqCsx). **[[utopian-moderator]](https://utopian.io/moderators)**
author | rosatravels |
---|---|
permlink | re-ruah-translating-527-words-of-facebook-react-20171223t070537275z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"} |
created | 2017-12-23 07:05:36 |
last_update | 2017-12-23 07:05:36 |
depth | 1 |
children | 0 |
last_payout | 2017-12-30 07:05:36 |
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 | 172 |
author_reputation | 422,827,447,688,168 |
root_title | "Translating 527 words of Facebook React" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 24,820,259 |
net_rshares | 0 |
### Hey @ruah I am @utopian-io. I have just upvoted you! #### Achievements - Seems like you contribute quite often. AMAZING! #### Suggestions - Contribute more often to get higher and higher rewards. I wish to see you often! - Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck! #### Get Noticed! - Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions! #### Community-Driven Witness! I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER! - <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness With SteemConnect</a> - <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness with SteemConnect</a> - Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a> [](https://steemit.com/~witnesses) **Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
author | utopian-io |
---|---|
permlink | re-ruah-translating-527-words-of-facebook-react-20171224t044636276z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"} |
created | 2017-12-24 04:46:36 |
last_update | 2017-12-24 04:46:36 |
depth | 1 |
children | 0 |
last_payout | 2017-12-31 04:46:36 |
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 | 1,424 |
author_reputation | 152,955,367,999,756 |
root_title | "Translating 527 words of Facebook React" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 24,961,469 |
net_rshares | 0 |