Skip to content

What is the use of batch()? #1899

Answered by markerikson
binarybehemoth asked this question in Q&A
Discussion options

You must be logged in to vote

You're using React 18, which now always does batching automatically. But, React 17 and earlier did not do that:

reactwg/react-18#21

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@100terres
Comment options

@markerikson
Comment options

@100terres
Comment options

@markerikson
Comment options

Answer selected by binarybehemoth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants