为什么我使用return ref.current.addNotice(notice),返回null;使用let refCon = ReactDOM.render(<Notification />,div);就可以?