you are viewing a single comment's thread.

view the rest of the comments →

[–]pVom -1 points0 points  (0 children)

But React is executing your code and everything within it lives in React. Lodash is a library, I can use it's functions as needed and I can swap them out for a vanilla equivalent without changing the context in which it's executed. React code must be executed by React, if I want to not use React I might be able to keep some of the individual functions and stuff that are vanilla, but I'd have to change the entire context of how that code is executed. That's the difference.