Constructor in Function Components
There is no constructor in a function component. People search this because class tutorials burned the word in. Initial state is the first argument to useState. Expensive init: useState(() => createRows()). That function runs once.
Mount work (subscribe, fetch, focus) is useEffect, not a constructor body. Saying ‘functional constructor’ in a viva without this correction sounds confused.
Constructor in Function Components — on screen: 0. First useState argument is the initial value — that is the ‘constructor’.
Parent
│ props (read-only)
▼
Child → UIuseState initial ≈ class constructor state.