# Is it possible to use React inside of worker with offscreen canvas?

**URL:** <https://forum.babylonjs.com/t/is-it-possible-to-use-react-inside-of-worker-with-offscreen-canvas/14792>\
**Category:** Questions\
**Created:** [October 9, 2020, 9:45am UTC](https://forum.babylonjs.com/t/is-it-possible-to-use-react-inside-of-worker-with-offscreen-canvas/14792 "2020-10-09T09:45:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![samevision](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@samevision](https://forum.babylonjs.com/u/samevision)\
**Post date:** [October 9, 2020, 9:45am UTC](https://forum.babylonjs.com/t/is-it-possible-to-use-react-inside-of-worker-with-offscreen-canvas/14792/1 "2020-10-09T09:45:48Z")

</div>

Hello community,

I try to improve the performance further and further. It looks much better now than some weeks earlier. I stumbled across the method to use a worker in another thread. My current problem is that I use React to interact with the scene dynamically. I am wondering if it is possible to use React Hooks with imports and exports inside of the worker? That would be very beneficial for me.

Thanks for your help.

Best

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [October 9, 2020, 3:29pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-use-react-inside-of-worker-with-offscreen-canvas/14792/2 "2020-10-09T15:29:27Z")

</div>

Well this is not really a Babylon question but more a React one 😉

---

<div class="post-metadata">

**Author:** ![samevision](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@samevision](https://forum.babylonjs.com/u/samevision)\
**Post date:** [October 12, 2020, 7:09am UTC](https://forum.babylonjs.com/t/is-it-possible-to-use-react-inside-of-worker-with-offscreen-canvas/14792/3 "2020-10-12T07:09:17Z")

</div>

I thought that maybe there is someone who encountered a similar problem with integrating offset canvas.

But sure, you’re right. Scusi.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [October 12, 2020, 2:17pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-use-react-inside-of-worker-with-offscreen-canvas/14792/4 "2020-10-12T14:17:29Z")

</div>

No need to apologize 😉
