akxcv / vuera

:eyes: Vue in React, React in Vue. Seamless integration of the two. :dancers:
MIT License
4.29k stars 240 forks source link

Interop with React Router (react-router-dom) and 3rd party libraries #132

Open Mobiletainment opened 3 years ago

Mobiletainment commented 3 years ago

Thank you for this library.

I would like to elaborate a use case: we have a React component library with some powerful components that rely on further dependencies, e.g.:

// Navigation.tsx

import React, { FC, useEffect, useRef, useState } from 'react';
import styled from 'styled-components';
import { Link, useLocation } from 'react-router-dom';
import AntdDropdown from 'antd/es/dropdown';
import 'antd/dist/antd.less';
....

Note that there are dependencies to React router, styled-components (which I figure should be fixed by now) and antd. Would it be possible to use such component with Vuera as-is? Or will this require further steps to integrate it properly and make it work?

Sorry for elaborating this here instead of simply trying it out, but my intention behind this issue is to gather some feedback and experiences here from you on a broader scale.

Thank you very much.

stringbeans commented 2 years ago

I'm assuming you've already gone ahead and tried it lol, but I can at least confirm that using the react router works :)