mirror of
https://github.com/strapi/strapi.git
synced 2025-12-19 03:09:26 +00:00
28 lines
432 B
JavaScript
28 lines
432 B
JavaScript
|
|
/*
|
||
|
|
*
|
||
|
|
* Search
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
|
||
|
|
import React from 'react';
|
||
|
|
|
||
|
|
import styles from './styles.scss';
|
||
|
|
|
||
|
|
class Search extends React.Component {
|
||
|
|
state = { value: '' };
|
||
|
|
|
||
|
|
handleChange = ({ target }) => {
|
||
|
|
this.setState({ value: target.value });
|
||
|
|
}
|
||
|
|
|
||
|
|
render() {
|
||
|
|
return (
|
||
|
|
<div className={styles.search}>
|
||
|
|
<input type="text" onChange={this.handleChange} value={this.state.value} />
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export default Search;
|