Skip to content

Instantly share code, notes, and snippets.

@Ateevduggal
Created Jun 11, 2022
Embed
What would you like to do?
// input data for table
const [tableData, setTableData] = useState(data);
//for data ids
const [toggle, setToggle] = useState(null);
//for filtering data
const [search, setSearch] = useState("");
// for editing data
const [editData, setEditData] = useState({
fullName: "",
userName: "",
address: "",
phoneNumber: "",
email: "",
website: "",
companyName: "",
});
//for sorting
const [order, setOrder] = useState("asc");
// for pagination
// No of pages
const [number, setNumber] = useState(1);
//Number of Posts per page
const [postPerPage] = useState(4);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment