class SearchBar extends React.Component{ onformsubmit(event){ event.preventDefault(); console.log(this.state.text); } state={text:\'\'} render(){ return ( 相关标签: