• Hook to access the ODD program and session from the OddContextProvider.

    Example

    // home.jsx
    import { useOddContext } from '@oddjs/preact'

    export default function Home(props) {
    const { session, isLoading, login, logout, register } = useOddContext()
    }

    Returns OddContext

Generated using TypeDoc