Skip to content

Homework 1#2

Open
loreliawand wants to merge 2 commits into
mainfrom
homework_1
Open

Homework 1#2
loreliawand wants to merge 2 commits into
mainfrom
homework_1

Conversation

@loreliawand
Copy link
Copy Markdown
Owner

No description provided.

@loreliawand loreliawand requested a review from poulkud July 25, 2022 11:11
Copy link
Copy Markdown
Collaborator

@poulkud poulkud left a comment

Choose a reason for hiding this comment

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

Поправить функции и комменты

Comment thread homework_1/src/App.js
Comment on lines +57 to +64
const name = this.state.name;
const surname = this.state.surname;
const dateOfBirth = this.state.dateOfBirth;
const phone = this.state.phone;
const page = this.state.page;
const aboutMe = this.state.aboutMe;
const techStack = this.state.techStack;
const lastProject = this.state.lastProject;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

зачем здесь это ? можно просто напрямую обращаться

const value = this.props.value;
return (
<div>
<label>{this.props.field}</label>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

лучше избавить от br. задай нужные стили для label

<div>
<label>
{this.props.field}
<br />
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

тоже самое

Comment thread homework_1/src/App.js
onChangeLastProject = (lastProject) => {
this.setState({ lastProject });
};

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Попробуй над логикой которая будет менять иметь только одну функцию а не много для всех стейтов. спроси в группе, ребята так делали

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.

2 participants