UNPKG

mfe-react

Version:

React Micro-Frontend Component Wrapper

1 lines 650 B
"use strict";(self.webpackChunk_mfe_react_mfe=self.webpackChunk_mfe_react_mfe||[]).push([[183],{183:(e,n,t)=>{t.r(n),t.d(n,{default:()=>m});var o=t(917),r=t(319),u=t(117);const c={style:{color:"green","font-weight":"bold"}},s=(0,o._)("div",null,"Even a component in a different framework can share methods through props!",-1),a=["onClick"],m={name:"VueComponent",props:["count","increment"],setup(e){const n=e;return(e,t)=>((0,o.wg)(),(0,o.iD)(o.HY,null,[(0,o._)("div",c,(0,r.zw)((0,u.SU)("This output is generated from a Vue component!"))+" Count: "+(0,r.zw)(n.count),1),s,(0,o._)("button",{onClick:n.increment},"Increment Counter",8,a)],64))}}}}]);