Blame view

src/InputSearch/InputSearch.js 314 Bytes
3a3ecabe   Imshann   init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  import template from "./InputSearch.html";
  
  class InputSearch {
      props = {
          value: String,
          placeholder: String,
          onSearch: Function
      };
  
      state = {
          value: null,
      }
  
      template = template;
  
      handleChange(event) {
          this.state.value = event.target.value;
      }
  }