# OncoPrint modifications

**URL:** <https://community.plotly.com/t/oncoprint-modifications/23452>\
**Category:** Dash Python\
**Created:** [May 14, 2019, 4:06pm UTC](https://community.plotly.com/t/oncoprint-modifications/23452 "2019-05-14T16:06:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhp](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@dhp](https://community.plotly.com/u/dhp)\
**Post date:** [May 14, 2019, 4:06pm UTC](https://community.plotly.com/t/oncoprint-modifications/23452/1 "2019-05-14T16:06:04Z")

</div>

I want to modify [plotly’s OncoPrint component](https://github.com/plotly/react-oncoprint) so that clicking a gene on the left triggers a prop update. I found that I can wrap the gene text [here](https://github.com/plotly/react-oncoprint/blob/master/src/components/OncoPrint.js#L131) with different HTML elements, but I’m unable to add an `onclick` to them to trigger a prop change. What would be the best way to do this?
