Recent Snippets

Install VSCode Extension with CLI
droopytersen/examples/install-vs-code-extension-with-cli.mdx

Manually Install VS Code Extension
droopytersen/examples/manually-install-vs-code-extension.mdx

Index.html for Parcel React App
droopytersen/react-app-examples/index.html

VS Code snippet for creating an index.html for a parcel typescript react app.

Index.html for Parcel React App
droopytersen/react-app-examples/index.html

VS Code snippet for creating an index.html for a parcel typescript react app.

PinPoint DataField Definition
droopytersen/pinpoint/pin-point-data-field-definition.ts

Creates a PinPoint DataField definition

deployDev.ps1
droopytersen/portalsdev/deployDev.ps1

Powershell script to automatically bundle, package and deploy an SPFx project

Changelog Entry
droopytersen/documentation/changelog-entry.md

A vscode snippet for a new entry to CHANGELOG.md

Monaco Editor Component
droopytersen/components/MonacoEditor.tsx

Creates an instance of a monaco editor. Huzzah

Cache Module
droopytersen/utils/cache.ts

A caching module that includes built-in expiration and bust cache.

DOM Utils
droopytersen/utils/domUtils.ts

Helpers for DOM/jQuery'ish things like add/removeStyle, add/remove/hasClass, getClosest etc...

useSiteData
droopytersen/spfx-hooks/useSiteData.tsx

SPFx hook for fetching site data

SharePoint Utils
droopytersen/portalsdev/sharepointUtils.ts

Helpers for things like getting the tenant or site of the current page.

Use Debounce
droopytersen/hooks-core/useDebounce.ts

Tracks a frequently changing value and only sets state after that value has stopped updating for a while.

SPFx Web Part Title component
droopytersen/spfx-components/WebPartTitle.tsx

A light wrapper around the PnP WebPartTitle component.

Reorder Items in Array
droopytersen/utils/reorder.js

Takes an old index and a new index and moves the item in an array