It's the same in React, you can use window.innerHeight to get the current viewport's height. As you can see here.
確定! 回上一頁