# Kibana React - error when importing

**URL:** <https://discuss.elastic.co/t/kibana-react-error-when-importing/231431>\
**Category:** Kibana\
**Created:** [May 7, 2020, 12:35am UTC](https://discuss.elastic.co/t/kibana-react-error-when-importing/231431 "2020-05-07T00:35:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [May 7, 2020, 1:21am UTC](https://discuss.elastic.co/t/kibana-react-error-when-importing/231431/2 "2020-05-07T01:21:33Z")

</div>

Does your app import its own version of react? Might be best to just use the version that ships with Kibana. Here is an example plugin that sets up a react router that you can follow

> <https://github.com/elastic/kibana/blob/7.5/src/legacy/core_plugins/kibana/public/home/components/home_app.js#L63>

Also a sample of the same issue discussed here: [Creating custom Kibana plugin in React](https://discuss.elastic.co/t/creating-custom-kibana-plugin-in-react/156012/3)

also copying CC @jbudz for more inputs.

---

_[View the full topic](https://discuss.elastic.co/t/kibana-react-error-when-importing/231431)._
