3 ms·
As I said, it's not the size of the React library that's the problem: https://news.ycombinator.com/item?id=26691150 https://news.ycombinator.com/item?id=2669115
by okareaman 6y ago
As I said, it's not the size of the React library that's the problem: https://news.ycombinator.com/item?id=26691150 https://news.ycombinator.com/item?id=26691150
- Drew_ 6y agoThere is no additional overhead in nesting React components vs normal HTML elements. React-rendered and normally rendered HTML are identical.
- okareaman 6y agoDan Ambramov has stated the reason hooks was created was to avoid nesting hell that was used to manage state. I may be misunderstanding him. I am not s React expert.
- Drew_ 6y agoReact hooks are just Javascript functions. The layout of your application is unaffected by the shape of your application state. Instead the shape of your application's state is typically governed by its layout.