hel-tpl-remote-react-comps
Version:
最简单的远程react组件模板 codesandbox: https://codesandbox.io/s/demo-load-remote-react-comp-2bnpl0?file=/src/App.js
3 lines • 1.74 kB
JavaScript
/*! For license information please see 174.7677fe3a.chunk.js.LICENSE.txt */
;(self["helJsonp_hel-tpl-remote-react-comps_1691540620825"]=self["helJsonp_hel-tpl-remote-react-comps_1691540620825"]||[]).push([[174],{936:function(e,r,o){o.r(r),o.d(r,{HelloRemoteReactComp:function(){return s}});var t=o(363),n=o.n(t);var l=o.p+"static/media/logo.6ce24c58023cc2f8fd88fe9d219db6c6.svg",c=o(184),s=n().forwardRef((function(e,r){return n().useImperativeHandle(r,(function(){return{sayHello:function(){alert("Hello hel-micro")}}})),(0,c.jsx)("div",{className:"App",children:(0,c.jsxs)("header",{className:"App-header",children:[(0,c.jsx)("img",{src:l,className:"App-logo",alt:"logo"}),(0,c.jsxs)("p",{children:[(0,c.jsx)("h1",{children:"This is a hel remote react component"}),(0,c.jsx)("h2",{children:"emitted by hel-micro"})]}),(0,c.jsx)("a",{className:"App-link",href:"https://tnfe.github.io/hel",target:"_blank",rel:"noopener noreferrer",children:"Learn hel-micro"})]})})}))},174:function(e,r,o){o.r(r),o.d(r,{comps:function(){return n}});var t=o(936),n=t;r.default=t},374:function(e,r,o){var t=o(363),n=Symbol.for("react.element"),l=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(e,r,o){var t,l={},i=null,f=null;for(t in void 0!==o&&(i=""+o),void 0!==r.key&&(i=""+r.key),void 0!==r.ref&&(f=r.ref),r)c.call(r,t)&&!a.hasOwnProperty(t)&&(l[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===l[t]&&(l[t]=r[t]);return{$$typeof:n,type:e,key:i,ref:f,props:l,_owner:s.current}}r.jsx=i,r.jsxs=i},184:function(e,r,o){e.exports=o(374)}}]);
//# sourceMappingURL=174.7677fe3a.chunk.js.map