create account

Translating 527 words of Facebook React by ruah

View this thread on: hive.blogpeakd.comecency.com
· @ruah ·
$23.45
Translating 527 words of Facebook React
# Translating 527 words of Facebook React
![image.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1513971596/cgqm9jaxhlgg9m9ss5ww.png)
<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.
![Capture_2017_12_23_03_41_47_826.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1513971715/tumtvpc4zxsmxjtk607a.png)
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>&lt;button /&gt;</code> ay nag render ng isang <code>&lt;input /&gt;</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>&lt;button&gt;</code> ay hindi maaring "maging" isang <code>&lt;input&gt;</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>&lt;Button color="red" /&gt;</code> ng unang beses, at ng <code>&lt;Button color="blue" /&gt;</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(&lt;App /&gt;, rootEl); // Dapat muling gamitin ang umiiral ng DOM: mountTree(&lt;App /&gt;, 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/>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorruah
permlinktranslating-527-words-of-facebook-react
categoryutopian-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"]}"
created2017-12-22 19:43:24
last_update2017-12-22 19:43:24
depth0
children2
last_payout2017-12-29 19:43:24
cashout_time1969-12-31 23:59:59
total_payout_value16.770 HBD
curator_payout_value6.683 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length5,881
author_reputation55,491,574,280,489
root_title"Translating 527 words of Facebook React"
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id24,747,610
net_rshares4,869,499,444,883
author_curate_reward""
vote details (32)
@rosatravels ·
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)**
properties (22)
authorrosatravels
permlinkre-ruah-translating-527-words-of-facebook-react-20171223t070537275z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2017-12-23 07:05:36
last_update2017-12-23 07:05:36
depth1
children0
last_payout2017-12-30 07:05:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length172
author_reputation422,827,447,688,168
root_title"Translating 527 words of Facebook React"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id24,820,259
net_rshares0
@utopian-io ·
### 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>

[![mooncryption-utopian-witness-gif](https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif)](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**
properties (22)
authorutopian-io
permlinkre-ruah-translating-527-words-of-facebook-react-20171224t044636276z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2017-12-24 04:46:36
last_update2017-12-24 04:46:36
depth1
children0
last_payout2017-12-31 04:46:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,424
author_reputation152,955,367,999,756
root_title"Translating 527 words of Facebook React"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id24,961,469
net_rshares0