-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fs-may19 Oleksandr Hlybchenko #21
base: master
Are you sure you want to change the base?
fs-may19 Oleksandr Hlybchenko #21
Conversation
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.
Прийняв
}; | ||
|
||
async componentWillMount() { | ||
const getedTodos = await this.getFromLocalStorage(); |
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.
get got gotten
localStorage.setItem('todos', JSON.stringify(data)); | ||
}; | ||
|
||
onItemAdded = (title) => { |
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.
addItem
|
||
<ul className="todo-list"> | ||
{todos.map(todo => ( | ||
<li className={todo.complete ? 'completed' : ''} key={todo.id}> |
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.
а чим завинила ця li що вона не попала в компонент TodoItem?)
TodoApp