Adapt Core API Overview
This overview is a short summary of the most often-used APIs from the Adapt Core library. It's arranged into sections based on the type of task each API is typically associated with.
For the complete list of all APIs, start at the top level exports for @adpt/core.
Writing Adapt Specifications
Built-in Components
Stacks
Style Sheets
Writing Your Own Components
Class Components
Built-in Hooks
- useAsync(f, initial)
- useBuildHelpers()
- useContext(context)
- useDependsOn(f)
- useDeployedWhen(f)
- useImperativeMethods(create)
- useMethod(hand, initial, method, args)
- useMethodFrom(hand, methodName, defaultVal, args)
- useState(init)
Utilities
- callInstanceMethod(hand, def, methodName, args)
- callNextInstanceMethod(hand, def, methodName, args)
- childrenToArray(propsChildren)
- handle(name)