3 ms·
There is no additional overhead in nesting React components vs normal HTML elements. React-rendered and normally rendered HTML are identical.
by Drew_ 6y ago
There 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.