Skip to content

Glossary: Real-Time Apps with WebSockets

useEffect

Also written: effect

A React hook that runs a function after the component appears, where you start things outside React such as a socket. Its returned function is the cleanup.

Where the book teaches it

Related terms

Dependency arrayEffect cleanupStrictMode