> For the complete documentation index, see [llms.txt](https://myty.gitbook.io/products/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://myty.gitbook.io/products/sdk/react-example/handle-webgl-view-and-interaction.md).

# Handle WebGL view & interaction

## MYTYSDKContext

{% embed url="<https://github.com/Off-Live/myty-sdk/blob/pre-release/dev/examples/react_2d_mp/react/src/context/MYTYSDKContext.tsx>" %}

A context to wrap <mark style="color:purple;">`ReactUnityWebGL`</mark> and provide states to the other parts of the application. It exposes multiple methods that implements [MYTY SDK Interface](/products/sdk/myty-sdk-interface.md). With this, you can send message to Unity and use contexts that are delievered from Unity

## MYTYSDKView

{% embed url="<https://github.com/Off-Live/myty-sdk/blob/pre-release/dev/examples/react_2d_mp/react/src/components/MYTYSDKView.tsx>" %}

A component that wraps <mark style="color:purple;">`Unity`</mark> component from <mark style="color:purple;">`ReactUnityWebGL`</mark> . This component also includes video element, since for HeadOnly(AR) mode, camera device stream needs to be shown in the screen
