Created
October 4, 2018 17:27
-
-
Save UpperCod/18e1a69c269c1bef8667ff5c24f28755 to your computer and use it in GitHub Desktop.
Sample import atomico
This file contains hidden or 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 { h, Element } from "atomico"; | |
customElements.define( | |
"atom-hello", | |
class extends Element { | |
static get props() { | |
return ["text"]; | |
} | |
render() { | |
return <h1>hello {this.props.text}</h1>; | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment