Skip to content

Алексей Левчук lesson3#19

Open
Headmaster11 wants to merge 10 commits into
LeonEsquire:masterfrom
Headmaster11:AliakseiL_lesson3
Open

Алексей Левчук lesson3#19
Headmaster11 wants to merge 10 commits into
LeonEsquire:masterfrom
Headmaster11:AliakseiL_lesson3

Conversation

@Headmaster11

@Headmaster11 Headmaster11 commented Jan 26, 2019

Copy link
Copy Markdown
Contributor

No description provided.

@SerSerch SerSerch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment thread AliakseiLiauchuk/src/Menu.js Outdated
class Menu extends React.Component {
render() {
const items = this.props.items.map((item, index) => {
return <li><a href={item.href}>{item.name}</a></li>

@LeonEsquire LeonEsquire Jan 30, 2019

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

<li key={index}..> - чтобы каждый элемент массива воспринимался как отдельный узел в виртуальном DOM'e, просто оптимизация 😄

@Headmaster11

Copy link
Copy Markdown
Contributor Author

Пофиксил конфликты

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.

3 participants