You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There should be universal mechanism to get component's props:
in markup:
<x-clockid="clock"data-type="digital" ></x-clock>
in code:
import{Component}from'@micro-frontends/core'exportclassXClockextendsComponent{staticgetName(){return'x-clock'}render(){constid=this.props.id;if(this.props.type=='digital'){//render digital clock}else{//render analog clock}}}
The text was updated successfully, but these errors were encountered:
There should be universal mechanism to get component's props:
in markup:
in code:
The text was updated successfully, but these errors were encountered: