Skip to content

Instantly share code, notes, and snippets.

@taishikato
Last active April 21, 2020 19:40
Show Gist options
  • Save taishikato/90c36cbbc2c658b692e0223ad57be415 to your computer and use it in GitHub Desktop.
Save taishikato/90c36cbbc2c658b692e0223ad57be415 to your computer and use it in GitHub Desktop.
import { withRouter } from 'react-router'
import { RouteComponentProps } from 'react-router-dom'
const Navbar: React.FC<RouteComponentProps> = props => {
React.useEffect(() => {
handleDropDown()
handleHumburger()
}, [props.location])
// Your code
}
export default withRouter(Navbar)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment