Unless you're doing lazy initialization, avoid setting refs during rendering — this can lead to surprising behavior. Instead, typically you want ...
確定! 回上一頁