Skip to content

Conversation

@marichka-offen
Copy link
Contributor

No description provided.

@marichka-offen marichka-offen mentioned this pull request Feb 11, 2019
88 tasks
@lex111 lex111 added the needs review A pull request ready to be reviewed label Feb 11, 2019
Copy link
Contributor

@INQTR INQTR left a comment

Choose a reason for hiding this comment

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

Мои небольшие предложения

Copy link
Member

@gaearon gaearon left a comment

Choose a reason for hiding this comment

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

Спасибо, надо поправить пару вещей

Copy link
Member

@gaearon gaearon left a comment

Choose a reason for hiding this comment

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

Хорошо! Есть одна претензия, которая по всему тексту — надо упростить сложные предложения


But how do you know what should be its own component? Just use the same techniques for deciding if you should create a new function or object. One such technique is the [single responsibility principle](https://en.wikipedia.org/wiki/Single_responsibility_principle), that is, a component should ideally only do one thing. If it ends up growing, it should be decomposed into smaller subcomponents.
Но как узнать, что является компонентом, а что нет? Всё очень просто: это похоже на то, как вы решаете, надо ли объявить функцию или объект. Один из таких методов — [принцип единственной ответственности](https://ru.wikipedia.org/wiki/Принцип_единственной_ответственности), суть которого состоит в том, что в идеале компонент должен выполнять только одну поставленную задачу. Если в конечном итоге функционал компонента увеличивается, его следует разбить на более мелкие подкомпоненты.

Copy link
Member

Choose a reason for hiding this comment

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

То же самое — упрощайте и разбивайте длинные предложения

@another-guy another-guy added work in progress Author opened the pull-request but it's still being worked on and removed needs review A pull request ready to be reviewed labels Feb 12, 2019
lex111 and others added 4 commits February 12, 2019 22:27
Co-Authored-By: marichka-offen <40467112+marichka-offen@users.noreply.github.com>
Copy link
Member

@gaearon gaearon left a comment

Choose a reason for hiding this comment

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

Очень хорошо. Поправил мелочи. Спасибо.

@gaearon gaearon merged commit aaf64e5 into reactjs:master Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

work in progress Author opened the pull-request but it's still being worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants