Frames

Untitled

0
1import { useContext } from 'react'
2import Context from './Context'
3
4export default function useAppState<S>(): [S, Function] {
5 const { appState, setAppState } = useContext(Context)
6 return [appState, setAppState]
7}
8