Replies: 1 comment 6 replies
-
Have you tried putting it outside? I'm assuming you would have it inside your component if you need something from state to calculate a Cell-render function or something like that. Else i agree, there shouldn't be a reason for it to be inside the component |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there,
I just finished the Quick Start tutorial. Could someone explain why we have to define the columns array inside of the functional component? Couldn't I just define them outside (without React.memo)? Why would this cause to rerender?
Why this (shortened from the tutorial):
instead of this:
Beta Was this translation helpful? Give feedback.
All reactions