Skip to content

Sona Ermando#17

Open
sonex23 wants to merge 3 commits intomainfrom
Sona-Ermando
Open

Sona Ermando#17
sonex23 wants to merge 3 commits intomainfrom
Sona-Ermando

Conversation

@sonex23
Copy link
Copy Markdown

@sonex23 sonex23 commented Apr 4, 2021

Comment thread src/App.js
@@ -0,0 +1,20 @@
import "./App.css";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

React jangan lupa di import ya

<h1 className="hero-text mt-5">
Hello Sona, welcome back. <br /> You have tasks to complete
</h1>
<img className="img-fluid" src="task.jpg" alt="ilustrasi" />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

src image di react jangan dimasukan secara hardcode seperti ini.

import imagenya, kemudian srcnya ambil dari image yg di import tadi

Comment on lines +9 to +13
<Task
task={task}
deleteTask={deleteTask}
changeStatus={changeStatus}
/>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

mapping harus ada props key !!!

Copy link
Copy Markdown
Contributor

@EddyPermana22 EddyPermana22 left a comment

Choose a reason for hiding this comment

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

kodenya sudah lumayan bagus dan bisa dengan mudah untuk dipahami alurnya.

Ada beberapa perbaikan yg perlu dilakukan, contohnya jika melakukan mapping, react component harus punya key yang unik dari setiap harsil mappingnya.

dicoba juga untuk menggunakan ternarry operator untuk memilih komponen yang akan ditampilkan.

@EddyPermana22 EddyPermana22 changed the title Sona ermando || https://todo-list-sonex.netlify.app/ Sona Ermando Apr 5, 2021
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.

3 participants