var s class App extends React.Component { constructor(props) { super(props); this.state = { value: "南京" }; } _renderPopup(a){ return
} onChange(e) { this.setState({ value: e.target.value }); } render() { return (
{this._renderPopup({ref: "xxxx",children: [333]})} {this._renderPopup({ref: "yyyy",children: [444]})}
); } } window.onload = function(){ s = ReactDOM.render(<App />, document.getElementById('example')) }
这个默认会被清掉