25 lines
No EOL
526 B
JavaScript
25 lines
No EOL
526 B
JavaScript
import React from 'react';
|
|
import '../../css/Components/searchbar.css';
|
|
|
|
class SearchBar extends React.Component {
|
|
constructor(props) {
|
|
super(props);
|
|
this.state ={
|
|
|
|
}
|
|
}
|
|
|
|
|
|
render() {
|
|
return (
|
|
<div>
|
|
<form method="POST" onSubmit={this.props.onSubmit}>
|
|
<input onChange={this.props.onChange} id="searchInput" type='search' placeholder='Rechercher'/>
|
|
</form>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
export default SearchBar; |