Can I use React and Vue together in the same project?

Updated October 2026 · How we answer

Short answerYes, it's technically possible to use React and Vue in the same project, but it adds complexity and is rarely recommended. You can mount each framework to different DOM elements or use Web Components for isolation.

How to mix React and Vue

You can include both libraries via script tags or as npm packages, then mount each to separate DOM nodes. For example, a React app could render into #react-root while a Vue app mounts to #vue-root on the same page.

If you need tighter integration, you can wrap components from one framework as custom elements (Web Components) and use them in the other. Tools like Vue's defineCustomElement or React's support for custom elements make this possible.

However, mixing frameworks means shipping both runtimes, which increases bundle size and can lead to duplicated dependencies. It also complicates state management and routing, since each framework has its own ecosystem.

  • Mount each framework to separate DOM elements.
  • Use Web Components as a bridge between frameworks.
  • Expect larger bundles and more complex build setup.
  • Consider a gradual migration instead of long-term mixing.

When it makes sense

Mixing is most common during a migration, such as moving a legacy Vue app to React piece by piece. In that case, you might run both frameworks temporarily until the migration is complete.

Another scenario is embedding a small widget built with one framework into a larger app built with the other. For example, a Vue-based chart component inside a React dashboard.

For new projects, it's almost always better to pick one framework. The overhead of maintaining two ecosystems usually outweighs any short-term benefits.

Common mistakes

  • Thinking you can easily share state between React and Vue without a custom bridge.
  • Assuming that mixing frameworks won't affect performance or bundle size.
  • Believing that you can use React components directly inside Vue templates without wrapping them.
From our shopsCaseMorph: Type an idea, see a custom phone case in seconds, then print a one-of-one.