Implementing micro frontend
Stack
VueJS -> container
ReactJS + web component -> component
Rollup -> bundling component
ReactJS + Web component
Here is the react component
import React from 'react'
import styles from "./count.module.scss";
const Count = ({count}) => {
return (
<div className={styles.text}>{count}</div>
)
}
export default Count.text{
color: aquamarine;
}Here is the script of web component which is wrapper of react component
Here is the main target bundling file
Here is the rollup file, to bundle css and web component js file as a output
Here is the package.json
VueJS
Here is the public html file which is injected the output script file from react repo and react script file
Here is main app file of vue
Result

Last updated
Was this helpful?