import StateContext from '../context/StateContext' ; export default function useState < S > ( initialState ) ; export default function useState < S = undefined > ( ) ; export default function useState < V > ( initialValue ? ) { const context = StateContext . current ; return context . add ( initialValue ) ; }