usually we initialise refs with null. This is because we set it later in our JSX calls; with the initial value of a ref being null, inputEl might be null.
確定! 回上一頁