Skip to content

Instantly share code, notes, and snippets.

Avatar

Josef Richter josefrichter

View GitHub Profile
View store.ts
import * as React from "react";
import { useState, useEffect } from "react";
/**
A hook to simply use state between components
Usage:
// You can put this in an central file and import it too
const useStore = createStore({ count: 0 })
@josefrichter
josefrichter / ComponentBoilerplate.tsx
Last active Oct 15, 2019 — forked from steveruizok/Example.tsx
An example Framer X code component.
View ComponentBoilerplate.tsx
import * as React from "react"
import {
Frame,
FrameProps,
addPropertyControls,
ControlType,
} from "framer"
type Props = Partial<FrameProps> &
You can’t perform that action at this time.