Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate Conditional Rendering page #30

Merged
merged 2 commits into from Mar 1, 2019

Conversation

galtalmor
Copy link
Collaborator

No description provided.

@tesseralis tesseralis mentioned this pull request Feb 28, 2019
88 tasks
@@ -202,7 +202,7 @@ function WarningBanner(props) {

return (
<div className="warning">
Warning!
הערה!
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning is אזהרה.


Returning `null` from a component's `render` method does not affect the firing of the component's lifecycle methods. For instance `componentDidUpdate` will still be called.
החזרת `null` ממתודת `render` של קומפוננטה לא משפיעה על הרצת מתודות מעגל החיים של קומפוננטה. למשל `componentDidUpdate` עדיין יקרא.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change lifecycle to מחזור חיים


In rare cases you might want a component to hide itself even though it was rendered by another component. To do this return `null` instead of its render output.
במקרים נדירים ייתכן שתרצו שרומפוננטה תסתיר את עצמה למרות שהיא רונדר על ידי קומפוננטה אחרת. כדי לעשות זאת החזירו `null` במקום את הפלט שאותו היא אמורה לרנדר.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have two typos, רומפוננטה and רונדר. It should be קומפוננטה and רונדרה.

@galtalmor galtalmor merged commit f8cd763 into reactjs:master Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants