Translation Conditional rendering by zubialevich · Pull Request #22 · reactjs/be.react.dev

### Лагічны аператар І (`&&`) {/*logical-and-operator-*/}

Another common shortcut you'll encounter is the [JavaScript logical AND (`&&`) operator.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_AND#:~:text=The%20logical%20AND%20(%20%26%26%20)%20operator,it%20returns%20a%20Boolean%20value.) Inside React components, it often comes up when you want to render some JSX when the condition is true, **or render nothing otherwise.** With `&&`, you could conditionally render the checkmark only if `isPacked` is `true`:
Яшчэ адно часта сустракаемае скарачэнне ў JavaScript — гэта [лагічны аператар І (`&&`).](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_AND#:~:text=The%20logical%20AND%20(%20%26%26%20)%20operator,it%20returns%20a%20Boolean%20value.) Унутры React кампанентаў ён часта выкарыстоўваецца, калі вам трэба адрэндэрыць нейкі JSX, калі ўмова роўная `true`, **або нічога не рэндэрыць інакш.** З дапамогай `&&` вы можаце ўмоўна рэндэрыць «птушку», толькі калі `isPacked` мае значэнне `true`:

Choose a reason for hiding this comment

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

Унутры React кампанентаў

Гляджу, у нас пачалося разыходжанне паміж "React кампанент" і "кампанент React". Асабіста мне падаецца, тут лепш было б другое. Але наогул трэба будзе куды-небудзь пазначыць праверку аднароднасці вось у такіх выпадках як асобную глабальную задачу.

Choose a reason for hiding this comment

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

А ці ёсць розніца? Ці гэта пытанне стылю? Але наконт аднароднасці згодны) Будзе цудоўна зрабіць стайл гайд і прайсціся з ім пасля па перакладзенаму

Choose a reason for hiding this comment

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

Пытанне стылю. Але тут так, стайл гайд трэба спачатку.