Skip to content
HomePortfolioBlogSnippetsDashboard
Tony Pettigrew

Tony Pettigrew

Software Engineer focused on JavaScript

Enthusiastically sharing my knowledge and experience in the industry through blogs and code snippets.

Featured Repositories

Popular Blog Posts

Detect A Click Outside An Element Using React Hooks

Learn how to write a react hook that detects clicks outside of the component that it is called in. This is useful for modals, drawers and menus.

Generate React Component Folders Using Yeoman and NPM

Write and publish your own NPM package for generating React components on the command line using Yeoman.

Go to all blog posts

Newest Snippets

Click Outside Hook

Detect clicks outside of DOM element.

Window Size Hook

Detect window resize event.

Go to all snippets

Not Playing

Spotify

HomePortfolio
LinkedInGitHub
BlogSnippetsDashboard