Skip to content

Instantly share code, notes, and snippets.

/hola-mundo2.tsx Secret

Created January 17, 2018 21:14
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 anonymous/4491929ff7020bf973934f9988b05436 to your computer and use it in GitHub Desktop.
Save anonymous/4491929ff7020bf973934f9988b05436 to your computer and use it in GitHub Desktop.
import {Component, Prop} from '@stencil/core'
@Component({
tag: 'hola-mundo2',
styleUrl: 'hola-mundo2.scss'
})
export class HolaMundo2 {
@Prop() text: string;
render () {
return (
<div>
<h1>{ this.text }</h1>
</div>
)
}
}
import {Component} from '@stencil/core'
@Component({
tag: 'hola-mundo3',
styleUrl: 'hola-mundo3.scss'
})
export class HolaMundo3 {
render () {
return (
<div>
<hola-mundo2 text="Hola Mundo"></hola-mundo2>
</div>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment