Engine Context
The context for accessing the engine API

Usage

You can access the Qlik engine in any component in your React component tree, see below for an example which returns the engine to the console.
1
import React, { useContext } from 'react'
2
import { EngineContext }from '@motor-js/engine'
3
4
const Example = () => {
5
6
const { engine, engineError } = useContext(EngineContext)
7
8
console.log(engine)
9
10
return (
11
<div>
12
Engine Example
13
</div>
14
)
15
}
16
17
export default Example
18
Copied!
Last modified 1yr ago
Copy link