({ onChange }: SearchProps)
| 5 | } |
| 6 | |
| 7 | function Search({ onChange }: SearchProps) { |
| 8 | console.log('Search rendered!'); |
| 9 | |
| 10 | return ( |
| 11 | <input |
| 12 | type='text' |
| 13 | placeholder='Search users...' |
| 14 | onChange={(e) => onChange(e.target.value)} |
| 15 | /> |
| 16 | ); |
| 17 | } |
| 18 | |
| 19 | export default memo(Search); |
nothing calls this directly
no outgoing calls
no test coverage detected