Created
December 4, 2019 20:02
-
-
Save developit/884efc8a23b06d64aa833cd78b9497da 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 './style'; | |
import { Component } from 'preact'; | |
export default class App extends Component { | |
render() { | |
return ( | |
<div> | |
<h1>Hello, World!</h1> | |
</div> | |
); | |
} | |
} |
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
{ | |
"name": "preact-cli-starter", | |
"version": "1.0.0", | |
"scripts": { | |
"start": "preact watch", | |
"build": "preact build", | |
"serve": "serve build -s -n" | |
}, | |
"dependencies": { | |
"preact": "^10.0.5", | |
"preact-render-to-string": "^5.1.1" | |
}, | |
"devDependencies": { | |
"eslint": "6.7.2", | |
"eslint-config-developit": "^1.1.1", | |
"preact-cli": "^3.0.0-rc.6", | |
"serve": "^11.2.0" | |
}, | |
"eslintConfig": { | |
"extends": "developit" | |
} | |
} |
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
html, body { | |
font: 14px/1.21 'Helvetica Neue', arial, sans-serif; | |
font-weight: 400; | |
} | |
h1 { | |
text-align: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment