Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react cleanup meas

Network requests, manual DOM mutations, and logging are common examples
of effects that don’t require a cleanup. We might want to set up a
subscription to some external data source. In that case, it is
important to clean up so that we don’t introduce a memory leak!
 
PREVIOUS NEXT
Tagged: #react #cleanup #meas
ADD COMMENT
Topic
Name
6+1 =