Replies: 1 comment 1 reply
-
|
I think there is probably no big difference. Could you try any benchmarks or metrics? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Does it make sense to pass element styles as props?
https://github.com/inokawa/virtua/blob/df10c04ffd67fdb70175e8e13a1e6cab1aec19a4/src/react/ListItem.tsx#L44C1-L71C4
You have a reference to an element and styles are applied to that element, as you keep track of its dimensions.
Maybe you could do something like:
Beta Was this translation helpful? Give feedback.
All reactions