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

Refactor ContractTransaction.tsx component #148

Open
marcinbodnar opened this issue Nov 10, 2022 · 0 comments
Open

Refactor ContractTransaction.tsx component #148

marcinbodnar opened this issue Nov 10, 2022 · 0 comments

Comments

@marcinbodnar
Copy link
Contributor

  1. Splitting the components into separate files
  • it makes it much easier to work on - it’s easier to make changes, find bugs, add features when all code related to the component is separated
  • what’s more important, it’s much easier to take a closer look at the component and decide which part of the UI should be in a separate component because of the logic - that has an impact on the efficiency.
  1. create smaller components with encapsulated logic
  • it’s much more efficient because we can decide which component should rerender in what situation vs rendering a big component in every situation
  • we can optimize the props flow - which also improves app efficiency
  • it’s also much easier to work on a small component
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

No branches or pull requests

1 participant