1. 直接new Component()
元件本身也是class,可以new,這樣的元件例項意義不大
componentInstance = new Component();
2. ReactDOM.render返回元件例項(React新版本已失效,返回null)
componentInstance = ReactDOM.render(<Component />, div);
3. ref回撥函式返回元件例項(React新版本可用)
let componentInstance;
ReactDOM.render(<Component ref={(com) => componentInstance = com} />,div>)