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