Can I use React and Vue together in the same project?
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.

Related questions
- How do I choose between React, Vue, and Angular for a new project?
- What is the difference between a framework and a library in JavaScript?
- Is React still the best choice for building a large web app?
- Should I learn React or Vue first as a beginner?
- Why does my React component re-render too often?
- Should I use Svelte instead of React for a new project?