# Customizing exclusive gateway in REACT

**URL:** <https://forum.bpmn.io/t/customizing-exclusive-gateway-in-react/3497>\
**Category:** Developers\
**Created:** [May 30, 2019, 8:16pm UTC](https://forum.bpmn.io/t/customizing-exclusive-gateway-in-react/3497 "2019-05-30T20:16:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akhil1515](https://forum.bpmn.io/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@Akhil1515](https://forum.bpmn.io/u/Akhil1515)\
**Post date:** [May 30, 2019, 8:16pm UTC](https://forum.bpmn.io/t/customizing-exclusive-gateway-in-react/3497/1 "2019-05-30T20:16:53Z")

</div>

Hello,

I want to remove the ‘X’ mark which is inside of an exclusive gateway. I want to make that gateway just look like a triangle with nothing embedded inside of it. How can I do that in REACT?

---

<div class="post-metadata">

**Author:** ![Niklas\_Kiefer](https://forum.bpmn.io/user_avatar/forum.bpmn.io/niklas_kiefer/32/3882_2.png) [@Niklas\_Kiefer](https://forum.bpmn.io/u/Niklas_Kiefer)\
**Post date:** [May 30, 2019, 8:57pm UTC](https://forum.bpmn.io/t/customizing-exclusive-gateway-in-react/3497/2 "2019-05-30T20:57:49Z")

</div>

Refer to [this](https://forum.bpmn.io/t/create-custom-start-or-task-in-react/3496/2?u=niklas_kiefer).

---

<div class="post-metadata">

**Author:** ![milhlhat](https://forum.bpmn.io/user_avatar/forum.bpmn.io/milhlhat/32/5592_2.png) [@milhlhat](https://forum.bpmn.io/u/milhlhat)\
**Post date:** [July 31, 2024, 3:01am UTC](https://forum.bpmn.io/t/customizing-exclusive-gateway-in-react/3497/3 "2024-07-31T03:01:49Z")

</div>

Following this [guide](https://github.com/bpmn-io/bpmn-js-example-custom-elements?tab=readme-ov-file#creating-custom-rendering), and you need custom drawShape function to remove ‘X’

```auto
    drawShape(parentNode: SVGElement, element: Shape): SVGElement {
        const shape = this.bpmnRenderer.drawShape(parentNode, element);
        // because 'X' is child of parentNode, remove it
        while (parentNode.firstChild) {
            parentNode.removeChild(parentNode.firstChild);
        }

        return shape;
    }

```

---

<div class="post-metadata">

**Author:** ![sombrek](https://forum.bpmn.io/user_avatar/forum.bpmn.io/sombrek/32/5121_2.png) [@sombrek](https://forum.bpmn.io/u/sombrek)\
**Post date:** [July 31, 2024, 2:33pm UTC](https://forum.bpmn.io/t/customizing-exclusive-gateway-in-react/3497/4 "2024-07-31T14:33:40Z")

</div>

@milhlhat Please do not [necrobump](https://www.urbandictionary.com/define.php?term=necrobump) old topics.

Anyway, the library supports rendering the gateway without x marker, so it’s possible to simply set the isMarkerVisible property of the BPMN (DI) element to false. That should be easier than redefining functions or modifying the graphics.

---

<div class="post-metadata">

**Author:** ![barmac](https://forum.bpmn.io/user_avatar/forum.bpmn.io/barmac/32/974_2.png) [@barmac](https://forum.bpmn.io/u/barmac)\
**Post date:** [July 9, 2025, 10:10am UTC](https://forum.bpmn.io/t/customizing-exclusive-gateway-in-react/3497/5 "2025-07-09T10:10:25Z")

</div>

Closed on July 9, 2025, 10:10am UTC

Closing old topics.
