Bones/node_modules/bs-recipes/recipes/webpack.preact-hot-loader/app/js/HelloWorld.jsx
SOUTHERNCO\x2mjbyrn 7efe7605b8 Template Upload
2017-05-17 13:45:25 -04:00

15 lines
288 B
JavaScript

import {h, Component} from 'preact';
export default class HelloWorld extends Component {
render() {
// Play with it...
const name = 'World';
return (
<h2 className="hello-world">
<span className="hello-world__i">Hello, {name}</span>
</h2>
);
}
}