Skip to content

Instantly share code, notes, and snippets.

@Ateevduggal
Created June 11, 2022 05:27
Show Gist options
  • Save Ateevduggal/89976307858bc058413b9078fd452fd8 to your computer and use it in GitHub Desktop.
Save Ateevduggal/89976307858bc058413b9078fd452fd8 to your computer and use it in GitHub Desktop.
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