# Choosing a library to integrate React components inside Vue

**URL:** <https://forum.xwiki.org/t/choosing-a-library-to-integrate-react-components-inside-vue/16565>\
**Category:** Cristal\
**Tags:** proposal\
**Created:** [February 25, 2025, 8:16am UTC](https://forum.xwiki.org/t/choosing-a-library-to-integrate-react-components-inside-vue/16565 "2025-02-25T08:16:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClementEXWiki](https://forum.xwiki.org/user_avatar/forum.xwiki.org/clementexwiki/32/8428_2.png) [@ClementEXWiki](https://forum.xwiki.org/u/ClementEXWiki)\
**Post date:** [February 25, 2025, 8:16am UTC](https://forum.xwiki.org/t/choosing-a-library-to-integrate-react-components-inside-vue/16565/1 "2025-02-25T08:16:18Z")

</div>

As the choice has been made to experiment with integrating [BlockNote](https://www.blocknotejs.org/) as a WYSIWYG editor in Cristal and XWiki in the future, and BlockNote is a React-only library, we need a way to interface React components inside Cristal which is written in Vue.

We’ve explored a few options:

- [Veaury](https://github.com/gloriasoft/veaury): well-maintained, we managed to run BlockNote inside Cristal with it. It supports props interfacing, events and nested children (providing a Vue or React component as a child of a React component which is itself displayed inside a Vue component)
- [Vuera](https://github.com/akxcv/vuera) is abandoned since late 2023
- [React inside Vue](https://github.com/essenmitsosse/react-inside-vue) is abandoned since 2023
- [React-Vue](https://github.com/SmallComfort/react-vue) is abandoned since early 2018

As you can see, there aren’t a lot of options. The good news is Veaury seems to work nicely. It doesn’t require to set up anything globally (except a plugin in Vite), we basically import React components normally and then wrap them using an utility function that allows us to use it locally in the current Vue component.

**EDIT:** Also considered maintaining a Vue ↔ React bindings library for BlockNote ourselves, but the problem would be the maintenance cost in the long run. Writing the initial bindings would take quite a bit of time, and it would take even more as BlockNote’s API changes in the upcoming months / years.

If you know of any other library that could be a better option, or if you’re aware of any limitation of Veaury, please let us know 🙂

---

<div class="post-metadata">

**Author:** ![CharpentierLucas](https://forum.xwiki.org/user_avatar/forum.xwiki.org/charpentierlucas/32/4830_2.png) [@CharpentierLucas](https://forum.xwiki.org/u/CharpentierLucas)\
**Post date:** [February 25, 2025, 9:50am UTC](https://forum.xwiki.org/t/choosing-a-library-to-integrate-react-components-inside-vue/16565/2 "2025-02-25T09:50:13Z")

</div>

Thanks for the research and explanation!

* * *

Side note: I think it would be useful to keep the knowledge you shared here and in [API design for making Cristal & XWiki editor-agnostic](https://forum.xwiki.org/t/api-design-for-making-cristal-xwiki-editor-agnostic/16566) in a [xwiki Design page](https://design.xwiki.org/xwiki/bin/view/Main/WebHome) or [the Cristal project documentation](https://cristal.xwiki.org/xwiki/bin/view/Main/).  
Down the line, this knowledge will be easier to find and update if it’s on a wiki IMO.

Have a good day!  
Lucas C.

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [February 25, 2025, 9:53am UTC](https://forum.xwiki.org/t/choosing-a-library-to-integrate-react-components-inside-vue/16565/3 "2025-02-25T09:53:19Z")

</div>

> [@ClementEXWiki](#):
>
> As the choice has been made to integrate [BlockNote](https://www.blocknotejs.org/) as a WYSIWYG editor in Cristal and XWiki in the future

AFAIK, the choice has not been made yet. And I don’t remember any proposal on this forum about it. What we said is that we would do a POC about it and then decide.

---

<div class="post-metadata">

**Author:** ![ClementEXWiki](https://forum.xwiki.org/user_avatar/forum.xwiki.org/clementexwiki/32/8428_2.png) [@ClementEXWiki](https://forum.xwiki.org/u/ClementEXWiki)\
**Post date:** [February 25, 2025, 12:42pm UTC](https://forum.xwiki.org/t/choosing-a-library-to-integrate-react-components-inside-vue/16565/4 "2025-02-25T12:42:01Z")

</div>

Sorry my message was badly worded ; I meant _experimenting_ with integrating BlockNote. I’ll edit my first message accordingly.

---

<div class="post-metadata">

**Author:** ![ClementEXWiki](https://forum.xwiki.org/user_avatar/forum.xwiki.org/clementexwiki/32/8428_2.png) [@ClementEXWiki](https://forum.xwiki.org/u/ClementEXWiki)\
**Post date:** [February 25, 2025, 12:42pm UTC](https://forum.xwiki.org/t/choosing-a-library-to-integrate-react-components-inside-vue/16565/5 "2025-02-25T12:42:52Z")

</div>

That’s the plan ; but I wanted to get some feedback before writing a summary in the wiki 🙂

---

<div class="post-metadata">

**Author:** ![mleduc](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mleduc/32/2328_2.png) [@mleduc](https://forum.xwiki.org/u/mleduc)\
**Post date:** [February 25, 2025, 2:39pm UTC](https://forum.xwiki.org/t/choosing-a-library-to-integrate-react-components-inside-vue/16565/6 "2025-02-25T14:39:23Z")

</div>

Thanks @ClementEXWiki !  
One last point I would like to see discussed. Did you also consider the option where we maintain the react/vue binding ourselves?

---

<div class="post-metadata">

**Author:** ![ClementEXWiki](https://forum.xwiki.org/user_avatar/forum.xwiki.org/clementexwiki/32/8428_2.png) [@ClementEXWiki](https://forum.xwiki.org/u/ClementEXWiki)\
**Post date:** [February 25, 2025, 2:46pm UTC](https://forum.xwiki.org/t/choosing-a-library-to-integrate-react-components-inside-vue/16565/7 "2025-02-25T14:46:06Z")

</div>

Good point, I updated my initial post with more infos on that matter 🙂

---

<div class="post-metadata">

**Author:** ![ClementEXWiki](https://forum.xwiki.org/user_avatar/forum.xwiki.org/clementexwiki/32/8428_2.png) [@ClementEXWiki](https://forum.xwiki.org/u/ClementEXWiki)\
**Post date:** [March 6, 2025, 12:13pm UTC](https://forum.xwiki.org/t/choosing-a-library-to-integrate-react-components-inside-vue/16565/8 "2025-03-06T12:13:22Z")

</div>

So, to give an update of that subject: Veaury created a few problems during implementation, making the page freeze when some components were nested.

So we tried to make a custom React-in-Vue / Vue-in-React library, and it works flawlessly for now. It is about 300 lines of code and is fully end-to-end typesafe, and will be published on Github once it’s correctly integrated into Cristal 🙂
