input νκ·Έμ onChangeλ₯Ό μ¬μ©ν κ²½μ° ν€ μ λ ₯ μλ§λ€ λ°μ
import React from "react";
const Search = props => {
return (
<div className="search-bar form-inline">
<input
id="form-control"
type="text"
onChange={e => props.onSearchChage(e.target.value)}
/>
<button className="btn hidden-sm-down">
<span className="glyphicon glyphicon-search"></span>
</button>
</div>
);
};
export default Search;