# Enter AR button functionality linking to React button

**URL:** https://forum.babylonjs.com/t/enter-ar-button-functionality-linking-to-react-button/21759
**Category:** Questions
**Tags:** webxr
**Created:** [June 18, 2021, 10:19am UTC](https://forum.babylonjs.com/t/enter-ar-button-functionality-linking-to-react-button/21759 "2021-06-18T10:19:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Krishna\_Kishore](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/krishna_kishore/32/3682_2.png) [@Krishna\_Kishore](https://forum.babylonjs.com/u/Krishna_Kishore)
#### Post date: [June 18, 2021, 10:19am UTC](https://forum.babylonjs.com/t/enter-ar-button-functionality-linking-to-react-button/21759/1 "2021-06-18T10:19:55Z")

</div>

How to enable “xr-button-overlay” functionality to the react button

---

<div class="post-metadata">

### Author: ![syntheticmagus](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/syntheticmagus/32/395_2.png) [@syntheticmagus](https://forum.babylonjs.com/u/syntheticmagus)
#### Post date: [June 18, 2021, 12:53pm UTC](https://forum.babylonjs.com/t/enter-ar-button-functionality-linking-to-react-button/21759/2 "2021-06-18T12:53:01Z")

</div>

Hi Krishna\_Kishore,

To be clear, is the question about how to start XR after pressing a button other than the default UI Babylon.js comes with? If so, I think you can do this by [calling `enterXRAsync`](https://doc.babylonjs.com/typedoc/classes/babylon.webxrexperiencehelper#enterxrasync) on your `WebXRExperienceHelper` in the callback for your button. This can get a little fiddly sometimes depending on what you’re reacting to and how you called back to it, but as long the thing that set off your callback was a user interaction such as a button press I think you should be fine. Hope this helps, and best of luck!
