Skip to content

Instantly share code, notes, and snippets.

@mustafa05deniz
Last active February 21, 2022 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mustafa05deniz/6c855f7832194f6afe80eff84473735e to your computer and use it in GitHub Desktop.
Save mustafa05deniz/6c855f7832194f6afe80eff84473735e to your computer and use it in GitHub Desktop.
Create Component
<--Angular-->
this.ComponentList.map((res) => {
this.mainContainer.createComponent(res);
});
<--React-->
React.createElement(ComponentList[block], {
block: block
})
<--Vue-->
<div class="componentBox" :index="index" :key="item" v-for="(item, index) in components" >
<component :is="item" class="tab"></component>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment