Junior — Senior
Analysis of React component ReviewMe behavior and task addition verification
livecode
Task condition
The component allows entering task text, saving it to an array, and displaying the list. It should be verified that a task is added both when pressing Enter and when clicking the button. Attention should be paid to potential issues such as the lack of cleanup for the event handler, the use of useLayoutEffect without necessity, the absence of dependencies in useCallback, and possible bugs with closures when updating state.