You could use the callback style ref and set state based on that. Ref can be set in the form of a callback function (React officially recommends using the ...
確定! 回上一頁