Skip to content

Glossary: Real-Time Apps with WebSockets

Effect cleanup

Also written: cleanup

The function an effect returns, which React runs when the component goes away. The board uses it to disconnect its socket so no extra connections are left behind.

Where the book teaches it

Related terms

useEffectStrictMode