MenuStalker
Renderiza menu do acompanhar.
Como aplicar no projeto
npm i @easynvest/menu-stalkerImportar
import MenuStalker from '@easynvest/menu-stalker'Template de utilização
MenuStalker(ELEMENTO_HTML_PAI, history.push, location.pathname)Exemplo
const menuRef = useRef(null)
useEffect(() => {
if (menuRef.current) {
MenuStalker(menuRef.current, history.push, location.pathname)
}
}, [location.pathname])
...
...
<div ref={menuRef} />Bibliotecas
- Jest
- Babel
- Eslint