Skip to content

Instantly share code, notes, and snippets.

View zakkturner's full-sized avatar

Zach Turner zakkturner

View GitHub Profile
@zakkturner
zakkturner / LoyaltyRegistration.tsx
Created May 11, 2023 19:28
Marketplace Loyalty Registration Form
import {
Dispatch,
MouseEvent,
SetStateAction,
useEffect,
useState,
} from 'react';
import { useSelector } from 'react-redux';
import { SubmitHandler, useForm } from 'react-hook-form';
import uuid from 'react-uuid';
@zakkturner
zakkturner / .js
Last active February 15, 2021 20:58
Between 2 Divs Private Repo Snippet - Mailchimp API
// #############################################
// REACT snippet - connecting input to mailchimp
// #############################################
import { useRef, useState } from 'react';
import '../pages/api/subscribe';
import fetch from 'isomorphic-fetch';
export default () => {
const inputEl = useRef(null);
@zakkturner
zakkturner / gist:5439243e1dcd12267e00d0506e57035a
Last active February 15, 2021 20:51
Interactive Nerd Gist
// ########################################
// Example React code from a private repo
// ########################################
import styles from "./dash-settings.module.scss";
import { useState } from "react";
import GeneralSettings from "../general-settings/general-settings";
import ChatSettings from "../chat-settings/chat-settings";
import AdvancedSettings from "../advanced-settings/advanced-settings";
export default function DashSettings() {
const [index, setIndex] = useState(0);