import React,{ Component } from 'react';class SearchBar extends Component { constructor(props){ super(props); this.state = {term : ''}; } render() { return <input onChange={event => this.setState( { term:event.target.value } )} />; }}export default SearchBar;這里的props指的是什么?怎么理解?
關(guān)于react的問題
嗶嗶one
2018-09-05 18:13:17