In React, useEffect is not a lifecycle hook; it is a tool for synchronization. It connects your component's state to systems outside of React (like a Backend API).
An effect runs after the render. The Dependency Array tells React exactly when to re-sync.
import { useState, useEffect } from 'react';