Last active
August 13, 2018 22:50
-
-
Save synga/805419c1472b29504fd6c6dddada6602 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, Prop } from '@stencil/core'; | |
@Component({ | |
tag: 'my-component', | |
styleUrl: 'my-component.css' | |
}) | |
export class MyComponent { | |
@Prop() first: string; | |
@Prop() last: string; | |
render() { | |
return ( | |
<div> | |
Hello, my name is {this.first} {this.last} | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment