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

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Headmaster11
Copy link
Contributor

@Headmaster11 Headmaster11 commented Jan 26, 2019

No description provided.

Copy link
Contributor

@SerSerch SerSerch left a comment

Choose a reason for hiding this comment

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

class Menu extends React.Component {
render() {
const items = this.props.items.map((item, index) => {
return <li><a href={item.href}>{item.name}</a></li>
Copy link
Owner

@LeonEsquire LeonEsquire Jan 30, 2019

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
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.

None yet

3 participants