• Robert Knight's avatar
    Add React context and component wrapper for injecting services · ffab5c8d
    Robert Knight authored
    To support accessing Angular services from nested React components
    without having to pass them through each parent, create a helper which
    wraps a component to look up service dependencies via an injector
    exposed using the context API, and inject the dependencies as props.
    ffab5c8d
service-context.js 2.5 KB