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

Refactoring or making the code lean #28

Closed
wickedwisdom0911 opened this issue Oct 8, 2022 · 5 comments
Closed

Refactoring or making the code lean #28

wickedwisdom0911 opened this issue Oct 8, 2022 · 5 comments
Labels
wontfix This will not be worked on

Comments

@wickedwisdom0911
Copy link

wickedwisdom0911 commented Oct 8, 2022

Would like to make this code lean by refactoring the card item in a variable called CardItem and then rendering inside the return statement. If you fid this issue useless , please reject.
{list.map((item, index) => (

))}

Changing this to :

const CardItem= list.map((item, index) => (

))

return
(
{CardItem}
)

image

@Arjun31415
Copy link
Contributor

Could you please tell me where this code is. Insert the link instead of a pic
Check the official docs on how to embed a permalink of code in the repo

@wickedwisdom0911
Copy link
Author

wickedwisdom0911 commented Oct 8, 2022 via email

@Arjun31415
Copy link
Contributor

I don't think I get you please could you explain what you are trying to change in codeblocks

@wickedwisdom0911
Copy link
Author

wickedwisdom0911 commented Oct 8, 2022 via email

@Arjun31415
Copy link
Contributor

No, we do not need this, it is alright like this

@Arjun31415 Arjun31415 added the wontfix This will not be worked on label Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants