-
Notifications
You must be signed in to change notification settings - Fork 1
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
Решил задачи 2 модуля - 3, 4, 5. #4
Conversation
…ив и с ним работал и 5 задачу - если честно очень сложно пока, пошел в гости к своему другу и только он смог помочь, небольшая каша в голове
Добавляю преподавателя (@ShGKme) для код-ревью. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Принято
const pages = [ | ||
{ | ||
id: 'meetup-id-1', | ||
name: 'meetupId', | ||
value: 1, | ||
}, | ||
{ | ||
id: 'meetup-id-2', | ||
name: 'meetupId', | ||
value: 2, | ||
}, | ||
{ | ||
id: 'meetup-id-3', | ||
name: 'meetupId', | ||
value: 3, | ||
}, | ||
{ | ||
id: 'meetup-id-4', | ||
name: 'meetupId', | ||
value: 4, | ||
}, | ||
{ | ||
id: 'meetup-id-5', | ||
name: 'meetupId', | ||
value: 5, | ||
}, | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Такие данные обычно генерируют, чтобы не описывать вручную
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
При этом name
здесь неизменяемое значение - его проще оставить в шаблоне. А id
- вычисляется от value
. Поэтому все значения можно сразу описывать в месте их использования в шаблоне.
No description provided.