-
-
Save Ateevduggal/89976307858bc058413b9078fd452fd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from "react"; | |
const Filter = ({search, setSearch}) => { | |
const Change_Filter = (e) => { | |
setSearch(e.target.value); | |
}; | |
return ( | |
<> | |
<div className="mb-4 mx-4"> | |
<input | |
type="text" | |
className="col-28pa from-control-sm" | |
placeholder="Search....." | |
value={search} | |
onChange={Change_Filter} | |
/> | |
</div> | |
</> | |
); | |
}; | |
export default Filter; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment