Created
November 25, 2017 04:34
-
-
Save jongacnik/76b0c546ec6b7d255289781f1f530163 to your computer and use it in GitHub Desktop.
choop - react component
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
var choo = require('choop') | |
var html = require('choop/html') | |
var h = require('choop/h') | |
var Pickers = require('react-color') | |
var app = choo() | |
app.route('/', function () { | |
return html` | |
<body> | |
${h(Pickers.PhotoshopPicker)} | |
</body> | |
` | |
}) | |
app.mount('body') |
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
{ | |
"name": "esnextbin-sketch", | |
"version": "0.0.0", | |
"dependencies": { | |
"choo-devtools": "2.2.0", | |
"choop": "3.0.0", | |
"react-color": "2.13.8", | |
"preact": "^8.2.6", | |
"preact-compat": "^3.17.0", | |
"react": "github:preact-compat/react", | |
"react-dom": "github:preact-compat/react-dom" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment