// High level API
<Breadcrumbs separator={<FancyIcon />}>
<Breadcrumb as="a" href="/">Home</Breadcrumb>
<Breadcrumb as={StyledLink} href="/components">Parent</Breadcrumb>
<Breadcrumb current>Current Page</Breadcrumb>
</Breadcrumbs>
🏄♂️
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 React from "react"; | |
import { render, fireEvent, act, screen } from "@testing-library/react"; | |
import { axe } from "jest-axe"; | |
import Tooltip, { LEAVE_TIMEOUT, MOUSE_REST_TIMEOUT } from "@reach/tooltip"; | |
// TODO: Whyyyyyy are we getting the `not wrapped in act(...)` warning? | |
// AFAICT, everything related to rendering and updating is wrapped in act. | |
// React testing experts, what the heck are we missing here? | |
describe("<Tooltip />", () => { |
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
function useFocusChange( | |
// callback (logs to console by default) | |
// handleChange?: ( | |
// activeElement: Element | null, | |
// previousActiveElement: Element | null, | |
// event?: FocusEvent | |
// ) => void | |
handleChange = console.log, | |
// whether to callback on `focus` or `blur` | |
// when?: 'focus' | 'blur' |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions | |
// - XState (all XState exports) |
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
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'editorconfig/editorconfig-vim' | |
Plugin 'jiangmiao/auto-pairs' | |
Plugin 'leafgarland/typescript-vim' | |
call vundle#end() |
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
## _/_/_/ _/ _/ _/_/ _/ _/ _/_/_/ _/_/_/_/ | |
## _/ _/ _/ _/ _/ _/_/ _/ _/ _/ | |
## _/ _/_/_/_/ _/_/_/_/ _/ _/ _/ _/ _/_/_/ | |
## _/ _/ _/ _/ _/ _/ _/_/ _/ _/ | |
## _/_/_/ _/ _/ _/ _/ _/ _/ _/_/_/ _/_/_/_/ | |
## | |
## _/_/_/_/_/ _/ _/ _/_/_/_/ | |
## _/ _/ _/ _/ | |
## _/ _/_/_/_/ _/_/_/ | |
## _/ _/ _/ _/ |
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 React from "react"; | |
import ReactDOM from "react-dom"; | |
import { | |
Accordion, | |
AccordionItem, | |
AccordionHeader, | |
AccordionPanel | |
} from "./Accordion"; | |
function App() { |
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
export function Example({ audioFile, ...props }) { | |
return ( | |
<div> | |
{/* basic auidio player with normal HTML5 controls */} | |
<RePlays src={audioFile} {...props} /> | |
{/* basic auidio player; pick and choose your controls */} | |
<RePlays src={audioFile}> | |
<Scrubber /> |
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 React from 'react'; | |
import { | |
Formik, | |
FormikProps, | |
Form, | |
Field, | |
FieldProps, | |
ErrorMessage, | |
} from 'formik'; | |
import * as Yup from 'yup'; |