Skip to content

useCallback Hook - WHY ?#71

Merged
arvish-codal merged 1 commit intomainfrom
1_June
Jun 1, 2024
Merged

useCallback Hook - WHY ?#71
arvish-codal merged 1 commit intomainfrom
1_June

Conversation

@arvish-codal
Copy link
Copy Markdown
Owner

Functionality : -

  • Display simple text.
  • A component to display age & increment age.
  • A component to display salary & increment salary.

WE MIGHT BE THINKING WHY do we need to break this down into 5 components ? Could we not just
have all the JSX in the parent component itself and make it simpler.

We definitely could do that but we've written the code in this particular way because we need
to understand about performance optimisation & off-course the useCallback Hook.

@arvish-codal arvish-codal merged commit af90e71 into main Jun 1, 2024
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