# Create custom start or task in REACT

**URL:** <https://forum.bpmn.io/t/create-custom-start-or-task-in-react/3496>\
**Category:** Developers\
**Created:** [May 30, 2019, 8:10pm UTC](https://forum.bpmn.io/t/create-custom-start-or-task-in-react/3496 "2019-05-30T20:10:03Z")\
**Posts on this page:** 8\
**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:10pm UTC](https://forum.bpmn.io/t/create-custom-start-or-task-in-react/3496/1 "2019-05-30T20:10:03Z")

</div>

How to create a custom start which is of oval in shape or a custom task which is in a shape other than rectangle in REACT.  
Can we reduce the size of task element border ??

Thanks in advance

---

<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/create-custom-start-or-task-in-react/3496/2 "2019-05-30T20:57:28Z")

</div>

Hi @Akhil1515,

to answer this, and your [second question](https://forum.bpmn.io/t/customizing-exclusive-gateway-in-react/3497), there exists a [custom element example](https://github.com/bpmn-io/bpmn-js-example-custom-elements) on how to render shapes differently. This does not depend on React.js or any other javascript library. There also exists different examples on how to integrate `bpmn-js` to React.js applications, e.g. [this.](https://github.com/bpmn-io/react-bpmn)

---

<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, 9:06pm UTC](https://forum.bpmn.io/t/create-custom-start-or-task-in-react/3496/3 "2019-05-30T21:06:55Z")

</div>

Okay thank you so much. May I know which methods and files should I modify in this to customize my model

Thank you,  
Akhil

---

<div class="post-metadata">

**Author:** ![philippfromme](https://forum.bpmn.io/user_avatar/forum.bpmn.io/philippfromme/32/2803_2.png) [@philippfromme](https://forum.bpmn.io/u/philippfromme)\
**Post date:** [June 3, 2019, 7:28am UTC](https://forum.bpmn.io/t/create-custom-start-or-task-in-react/3496/4 "2019-06-03T07:28:20Z")

</div>

Please don’t open 3 topics about the same thing. For customization start here: [https://github.com/bpmn-io/bpmn-js-examples/tree/master/custom-elements](https://github.com/bpmn-io/bpmn-js-examples/tree/master/custom-elements)

---

<div class="post-metadata">

**Author:** ![xhuihui](https://forum.bpmn.io/letter_avatar_proxy/v4/letter/x/d78d45/32.png) [@xhuihui](https://forum.bpmn.io/u/xhuihui)\
**Post date:** [October 17, 2019, 10:02am UTC](https://forum.bpmn.io/t/create-custom-start-or-task-in-react/3496/5 "2019-10-17T10:02:30Z")

</div>

I want to change the height of the usertask now

```auto
export default class CustomRenderer extends BaseRenderer {
  constructor(eventBus, bpmnRenderer) {
    super(eventBus, HIGH_PRIORITY);

    this.bpmnRenderer = bpmnRenderer;
  }

  canRender(element) {

    // ignore labels
    return !element.labelTarget;
  }
  drawShape(parentNode, element) {
   
    
    const shape = this.bpmnRenderer.drawShape(parentNode, element);

    if(element.type=='bpmn:UserTask'){
      element.height=50;
}
.....

```

is ok.  
 ![image](https://forum.bpmn.io/uploads/default/original/2X/a/a51ecac7d57e184f29a26f44601cec2faadc0d6f.png)

But when I change the type by setting

![image](https://forum.bpmn.io/uploads/default/original/2X/5/5ad81b960f752f34d45a737cf9e06171fa5821fa.png)

It’s moving up 15 pixels overall.

![image](https://forum.bpmn.io/uploads/default/original/2X/4/481b21ef943e0aaf94d12a38fc82669dc58fada0.png)

---

<div class="post-metadata">

**Author:** ![xhuihui](https://forum.bpmn.io/letter_avatar_proxy/v4/letter/x/d78d45/32.png) [@xhuihui](https://forum.bpmn.io/u/xhuihui)\
**Post date:** [October 17, 2019, 10:04am UTC](https://forum.bpmn.io/t/create-custom-start-or-task-in-react/3496/6 "2019-10-17T10:04:05Z")

</div>

> [@xhuihui](#):
>
> element.height=50;

What should I do? Thank you

---

<div class="post-metadata">

**Author:** ![suvendu\_kumar\_sahoo](https://forum.bpmn.io/user_avatar/forum.bpmn.io/suvendu_kumar_sahoo/32/5174_2.png) [@suvendu\_kumar\_sahoo](https://forum.bpmn.io/u/suvendu_kumar_sahoo)\
**Post date:** [March 15, 2024, 9:48am UTC](https://forum.bpmn.io/t/create-custom-start-or-task-in-react/3496/7 "2024-03-15T09:48:56Z")

</div>

Hi Akhil, If U resolved the issue, can u send me your react code?

---

<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:11am UTC](https://forum.bpmn.io/t/create-custom-start-or-task-in-react/3496/8 "2025-07-09T10:11:02Z")

</div>

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

Closing old topics.
