function searchEmployees(e)  {
        e.preventDefault();
        dispatch({type: SEARCH_EMPLOYEES, payload: search});
        setSearch(search);
    }
// search employees function, the dispatch we call to filter the results
search employees function, the dispatch we call to filter the results
search employees function the dispatch we call to filter the results
function searchEmployees(e)  {
        e.preventDefault();
        dispatch({type: SEARCH_EMPLOYEES, payload: search});
        setSearch(search);
    }
function searchEmployees ( e ) { e . preventDefault ( ) ; dispatch ( { type : SEARCH_EMPLOYEES , payload : search } ) ; setSearch ( search ) ; }
search employees function, the dispatch we call to filter the results
search employees function the dispatch we call to filter the results