This is the vuera
lib from akxcv
(amazing effort man!). Check it Vuera GH.
Due to inactivity in vuera
part, I've decided to move forward with vuera-ts
and maintain it for my professional work.
Check ./webpack_vue2
example. I prefer to control myself how files are loaded, so the project is a simple vue2 project build from scratch using webpack v5
.
In a nutshell:
yarn add vuera-ts
import { ReactInVue } from "vuera-ts";
import { TestComp } from "./react_ui";
const TestCompInVue = ReactInVue(TestComp);
Then you can use TestCompInVue
in your Vue component. Register it in Vue.components
then add it to your template
like so:
<TestCompInVue foo="bar from Vue">
This is a children from Vue - it updates on Hot Reload! :D
</TestCompInVue>
git clone [email protected]:tachyon-ops/react_vue_ts.git
yarn
yarn build
yarn publish
- Setup
webpack_vue3
example - Setup
webpack_react
example - Check if Vue in react works (I am not very motivated to do it)
I really enjoy people recognizing others. Therefore, whoever contributes to our project will have a mention here :) I am very grateful!