Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/styllloz/public_html/qa-include/qa-base.php on line 1175

Warning: session_start(): Cannot start session when headers already sent in /home/styllloz/public_html/qa-include/app/users.php on line 162

Warning: Cannot modify header information - headers already sent by (output started at /home/styllloz/public_html/qa-include/qa-base.php:1175) in /home/styllloz/public_html/qa-include/app/users.php on line 1267

Warning: Cannot modify header information - headers already sent by (output started at /home/styllloz/public_html/qa-include/qa-base.php:1175) in /home/styllloz/public_html/qa-include/app/page.php on line 356
All application will rerendered, if you change some internal(somewhere in the Appendix) state of one of the components? - code-flow.club | Q&A

All application will rerendered, if you change some internal(somewhere in the Appendix) state of one of the components?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
9 views
Let's say there's an app.
Here such structure

The header and footer have their own state.
If somewhere in the footer there is a button which updates the state of the footer, whether to compare the entire App. or only a Footer which has your state?
by | 9 views

2 Answers

0 like 0 dislike
Of course not. Rendered (redrawn) only the "portion" (one component), which changed the props/state + all children if no optimizations (for example, they can be made stateless, or to have pureComponent shouldComponentUpdate - then the repaint will not under these conditions).

see updated question: Yes, only the footer.
by
0 like 0 dislike
only footer
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
asked Jun 1, 2019 by brachkoff
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
35,181 users