Skip to content

Instantly share code, notes, and snippets.

View steveruizok's full-sized avatar
🏠

Steve Ruiz steveruizok

🏠
View GitHub Profile
@steveruizok
steveruizok / CodeMirror.tsx
Created June 28, 2021 05:49 — forked from alinnert/CodeMirror.tsx
CodeMirror 6 React Component
import { FC } from 'react'
import { useCodeMirror } from './useCodeMirror'
interface Props {
content: string
classNames?: string
onContentChange: (content: string) => void
}
export const CodeMirror: FC<Props> = ({
@steveruizok
steveruizok / SketchSystems.spec
Last active July 4, 2018 16:51 — forked from ryanlucas/SketchSystems.spec
Search Machine
Search Machine
Empty
focusInput -> InputFocused
searchByLocation -> LoadingResults
NoLocation*
getLocation -> HasLocation
HasLocation
loseLocation -> NoLocation
InputFocused
changeInput -> Loading