Skip to content

Clean code#23

Open
karanWD wants to merge 10 commits into
niinpatel:masterfrom
karanWD:clean-code
Open

Clean code#23
karanWD wants to merge 10 commits into
niinpatel:masterfrom
karanWD:clean-code

Conversation

@karanWD

@karanWD karanWD commented May 18, 2022

Copy link
Copy Markdown

modify numpad component with arrays

Comment thread src/App.js
// eslint-disable-next-line
result: (eval(checkResult) || "" ) + ""
})
// let stringRes = (eval(checkResult) || "").toString()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Commented code should not be pushed to GitHub.

<>
{rows.map((item, index) => {
return (
<button key={index} className={item.className} onClick={() => onClick(item.value)}>{item.text}</button>)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Not a good practice to keep index as key.

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