Skip to content

Instantly share code, notes, and snippets.

View PriscillaSam's full-sized avatar

Alius Dei PriscillaSam

View GitHub Profile
@ovieokeh
ovieokeh / intro.md
Last active November 23, 2020 08:20
Experimental idea for state management using Context API + Hooks

react-state-context is a small library for managing context state in an imperative and predictable way for small to mid-sized react apps.

These days, you don't have to install a library to manage your react state. Thanks to the Context API and the useReducer hook, you can manage your state cleanly without having to rely on prop drilling. This is great but only if you do it right. Without the structure provided by a dedicated state management library, you may find it difficult to structure and manage your state in a predictive way (think having tons of dispatch actions spread around your codebase without clarity on what each dispatch does).

@aamnah
aamnah / quick-actions-finder-macos-big-sur.md
Last active February 25, 2025 23:20 — forked from tonysneed/Mac OS X: Open in Visual Studio Code
Add Quick Actions to Finde in macOS Big Sur to open a folder in VS Code
  • Open Automator
  • Choose Quick Action as the document type
  • Change Workflow receives current to files or folders in Finder.app
  • For Action, choose Open Finder items from the left hand sidebar
  • Change Open with to Visual Studio Code.app (find it in Other... )
  • For the Icon, change Image to "Choose..." and select the Visual Stuido Code app. It'll automatically pick the icon
  • Save it (Cmd+S) as something like "Open in VS Code"