ravenous
2016-12-15 09:11:13 0 举报
AI智能生成
Ravenous,一个形容词,用来形容极度饥饿的状态。当一个人长时间没有进食时,他的胃会发出咕咕的声音,仿佛在诉说着它的渴望。他的眼睛会变得锐利而专注,寻找着任何可以填饱肚子的食物。他的思绪变得混乱,只想着满足自己的需求。他的手指颤抖着,迫不及待地抓住食物,狼吞虎咽地吞咽下去。每一口都带来一种无法言喻的满足感,仿佛重新获得了生命的力量。然而,一旦满足了饥饿的需求,他的身体和心灵也会逐渐恢复平静。Ravenous,它是一种强烈的欲望,让人感受到生存的本能和对食物的渴望。
作者其他创作
大纲/内容
Business
to display lists of food
business = {
imageSrc: 'https://s3.amazonaws.com/codecademy-content/programs/react/ravenous/pizza.jpg',
name: 'MarginOtto Pizzeria',
address: '1010 Paddington Way',
city: 'Bordertown',
state: 'NY',
zipCode: '10101',
category: 'Italian',
rating: 4.5,
reviewCount: 90
};
imageSrc: 'https://s3.amazonaws.com/codecademy-content/programs/react/ravenous/pizza.jpg',
name: 'MarginOtto Pizzeria',
address: '1010 Paddington Way',
city: 'Bordertown',
state: 'NY',
zipCode: '10101',
category: 'Italian',
rating: 4.5,
reviewCount: 90
};
SearchBar
state
this.state={
term: '',
location: '',
sortBy: '',
best_match: ''
}
term: '',
location: '',
sortBy: '',
best_match: ''
}
function
handleSortByChange
handleSortByChange(sortByOptionValue){
this.setState({
sortBy:sortByOptionValue
})
this.setState({
sortBy:sortByOptionValue
})
handleTermChange
handleTermChange(e){
this.setState({
term: e.target.value
})
}
this.setState({
term: e.target.value
})
}
handleLocationChange
handleLocationChange(e){
this.setState({
location:e.target.value
})
this.setState({
location:e.target.value
})
handleSearch
handleSearch(e){
let term=this.state.term;
let location=this.state.location;
let sortBy=this.state.sortBy;
this.props.searchYelp(term,location,sortBy);
e.preventDefault();
}
let term=this.state.term;
let location=this.state.location;
let sortBy=this.state.sortBy;
this.props.searchYelp(term,location,sortBy);
e.preventDefault();
}
0 条评论
下一页
为你推荐
查看更多