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.

import React, { useContext } from 'react'
import { EngineContext }from '@motor-js/engine'

const Example = () => {

	const { engine, engineError } = useContext(EngineContext)
	
	console.log(engine)
	
	return (
		<div>
			Engine Example
	  </div>
	)
}

export default Example

Last updated