<style>
h1 { font-weight: bold; }
</style>
<script>
import { props } from '@stackpress/ink';
const { name } = props();
</script>
<h1>Hello {name}!!</h1>
import { props } from '@stackpress/ink';
export default class Hello extends InkComponent {
styles() {
return 'h1 { font-weight: bold; }';
}
template() {
const { name } = props();
return () => [
InkRegistry.createElement('h1', null, `Hello ${name}`)
]
}
}