Capability Context

Context for accessing the Capability APIs

Usage

You can access the Capability APIs in any component in your React component tree, see below for an example which clears a field called Date

import React, { useContext } from 'react'
import { CapabilityContext } from '@motor-js/core'
const Example = () => {
const { app } = useContext(CapabilityContext)
const clear = () => {
app.field('Date').clear()
}
// ...