@escolalms/h5p-react
    Preparing search index...

    Type Alias Consumer<T>

    The old way to read context, before useContext existed.

    Type Parameters

    • T
    import { UserContext } from './user-context';

    function Avatar() {
    return (
    <UserContext.Consumer>
    {user => <img src={user.profileImage} alt={user.name} />}
    </UserContext.Consumer>
    );
    }