This solution is generated by ChatGPT, correctness is not guaranteed.

AI solution for React Quiz on BFE.dev
27. useEffect() timing II

The code will output the following to the console:

1 2 3 4