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 }) |
View ComponentBoilerplate.tsx
import * as React from "react" | |
import { | |
Frame, | |
FrameProps, | |
addPropertyControls, | |
ControlType, | |
} from "framer" | |
type Props = Partial<FrameProps> & |