yeah, I learned it from ChatGPT and i thought it is wrong because it looks weird confusing, exactly like you said. in discussions, React folks recommend not to use the pattern in application code, rather via an official library