Skip to content

Instantly share code, notes, and snippets.

View owonwo's full-sized avatar

Joseph Owonvwon owonwo

View GitHub Profile
@owonwo
owonwo / debug-click.tsx
Last active October 6, 2025 16:15
DebugClick Component for React
import { Slot } from "@radix-ui/react-slot"
import { rootLogger } from "@/lib/logger"
/**
* @description - Logs input to the console for debugging. Hold SHIFT and Click
* @param props
* @returns
*/
export function DebugClick(props: {
disabled?: boolean
@owonwo
owonwo / form-builder-component.tsx
Last active June 15, 2023 11:32
A snippet of my Form Builder component
import React, { useCallback } from "react";
import * as R from "ramda";
import styled from "@emotion/styled";
import { useFormContext } from "react-hook-form";
import {
DateTimePickerControl,
InputWrapper,
PasswordField,
RHFSelect,
RHFSelectDataSource,