Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

header-kelvymm

Renderiza menu do acompanhar.

readme

MenuStalker

Renderiza menu do acompanhar.

Como aplicar no projeto

npm i @easynvest/menu-stalker

Importar

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