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

Teuku muhammad ammar #6

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ammarteuku05
Copy link

No description provided.

Comment on lines +6 to +10
<>
<div>
<TodoList />
</div>
</>
Copy link
Contributor

Choose a reason for hiding this comment

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

ini pilih aja satu, mau pake fragment atau pake div untuk ngebungkus jadi 1 parent element

@@ -0,0 +1,14 @@
import './App.css';
Copy link
Contributor

Choose a reason for hiding this comment

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

jangan lupa import React !!!

Comment on lines +34 to +55
<>
<div>
{todos.map((todo, index) =>(
<div className={todo.isComplete ? 'todo-row complete' : 'todo-row'}
key={index} >
<div className = "text-dark" key={todo.id} onClick={() => completeTodo(todo.id)}>
{todo.text}
</div>
<div className="icons">
<RiCloseCircleLine
onClick={() => removeTodo(todo.id)}
className = 'delete-icon'
/>
<TiEdit
onClick={() => setEdit({id : todo.id, value: todo.text})}
className = 'edit-icon'
/>
</div>
</div>
))}
</div>
</>
Copy link
Contributor

Choose a reason for hiding this comment

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

sudah di bungkus div, tidak perlu dibungkus fragment lagi

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