(React uses the Object.is comparison algorithm.) ... If you pass an empty array ( [] ), the props and state inside the effect will always have their initial ...
確定! 回上一頁