Skip to content
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
2 changes: 1 addition & 1 deletion stack/book/Part-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

### Transaction

Well, the component instance should be somehow **connected** to React's eco-system and, of course, **make some influence** on it. There is a dedicated module `ReactUpdates` which helps with this. As you know, **React performs updates in chunks**, it means that it collects operations and performs them **together**. It’s always better because it allows applying some **pre-condition** and **post-conditions** just once for the whole list of items (chunk) instead of doing it for each item.
Well, the component instance should be somehow **connected** to React's eco-system and, of course, **make some influence** on it. There is a dedicated module `ReactUpdates` which helps with this. As you know, **React performs updates in chunks**, which means that it collects operations and performs them **together**. It’s always better because it allows applying some **pre-condition** and **post-conditions** just once for the whole list of items (chunk) instead of doing it for each item.

What actually helps handle this pre/post processing? Right, **transaction**! For someone it can be a new word, or at least its interpretation for UI needs, so let’s talk a bit more about it and start from a simple example.

Expand Down