Also, the button property on MyComponent will not be set until React has finished rendering. Until then your button ref will be undefined. Protect yourself ...
確定! 回上一頁