Contexts

Example

import React from 'react';
import { Definitions, Dispatch, Store } from 'q3-admin/lib/containers';

const StatefulComponent = () => {
    const defs = React.useContext(Definitions);
    const dispatchers = React.useContext(Dispatch);    
    const datastore = React.useContext(Store); 
    return null;
}

API

Definitions Context Consumer

Prop

Type

Description

Last updated

Was this helpful?