Skip to content

Angga Prasetya Wibawa#13

Open
anggapw wants to merge 6 commits intoExcellent-Echo:mainfrom
anggapw:dev
Open

Angga Prasetya Wibawa#13
anggapw wants to merge 6 commits intoExcellent-Echo:mainfrom
anggapw:dev

Conversation

@anggapw
Copy link
Copy Markdown

@anggapw anggapw commented Apr 2, 2021

In progress:

  • Edit feature
  • Add task in correct role

https://todolist-react-anggapw.netlify.app/

@anggapw anggapw changed the title anggapw not finished yet Apr 2, 2021
Comment thread src/App.js Outdated
Comment thread src/App.js
const [tasks, setTasks] = useState([])
const [tasksRemaining, setTasksRemaining] = useState(0)

useEffect(() => {
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.

Sebaiknya effect diberi command sehingga kita bisa tahu ini effect untuk apa

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.

karena kita nggak bisa kasih nama effect seperti kasih nama variable dan function dengan meaningfull name, makanya di usahakan kasih comment agar yg baca dan kita sendiri sewaktu lihat kode bisa dengan cepat mengerti kegunaan effect ini

Comment thread src/components/InputData.jsx Outdated
Comment thread src/components/InputData.jsx Outdated
Comment thread src/components/TaskCard.jsx
Comment thread src/components/TaskCard.jsx
Comment thread src/components/TaskList.jsx
Comment thread src/components/TaskList.jsx Outdated
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.

saya menemukan masih banyak react component yang tidak mengimport React.

Usahakan selalu import React pada setiap react component.

penggunaan block scope (conditional) yang tidak menggunakan curly brace tolong dihindari, dan gunakan curly brace sebagai conventional block scope yang digunakan oleh programmer javascript.

Ketika mapping, WAJIB ada props key yang valuenya unik.
Ingat react ini melakukan perubahan di virtual DOM, bukan di real DOM. sehingga hal ini sangat penting.

Secara keseluruhan kodenya sudah cukup baik, tinggal di revisi beberapa hal yg saya hightlight tadi.

Good Job !

@EddyPermana22 EddyPermana22 changed the title not finished yet Angga Prasetya Wibawa 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.

2 participants