17 }).then(res=> {
18 setTxs(res.data.data)
19
20 }).catch(error=> {})21 }, []);
22
23 const handleChange = e => {
Having empty functions hurts readability, and is considered a code-smell. There's almost always a way to avoid using them. If you must use one, consider adding a comment to inform the reader of its purpose.
getUser('SwaGaLisTiQuE', () => {})
function f() {}
getUser('SwaGaLisTiQuE', () => {
// empty because <reason>
})
function f() {
// intentionally empty. <reason>
}