📜  react cleanup meas - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:08.958000             🧑  作者: Mango

代码示例1
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!