Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explaining redraw more clearly. #198

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions interactive.tex
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,8 @@ \chapter{Interactive Sites}\label{s:interactive}

React calls each component's \texttt{render} method each time \texttt{setState} is used to update the component's state.
Behind the scenes,
React does some thinking to minimize how much redrawing takes place:
while it may look as though the paragraph, button, and current count are all being redrawn each time,
React will only actually redraw as little as it can.
React does some thinking to minimize how much redrawing takes place
in order to make the application more responsive and minimize flickering and jumpiness.

\section{But It Doesn't Work}\label{s:interactive-babel}

Expand Down