This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ############################################# | |
// 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ######################################## | |
// 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); |