Hook to access the ODD program and session from the OddContextProvider.
OddContextProvider
// home.jsximport { useOddContext } from '@oddjs/preact'export default function Home(props) { const { session, isLoading, login, logout, register } = useOddContext()} Copy
// home.jsximport { useOddContext } from '@oddjs/preact'export default function Home(props) { const { session, isLoading, login, logout, register } = useOddContext()}
Generated using TypeDoc
Hook to access the ODD program and session from the
OddContextProvider
.Example