Last active
April 10, 2017 01:44
-
-
Save sonhanguyen/ba559662994fa1266bc2e0f11a1adc61 to your computer and use it in GitHub Desktop.
make coffeescript act again (act again <- get it?)
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
try do registerInstaller = -> require 'autoinstall' catch notFound | |
require('child_process').execSync 'npm i autoinstall' | |
registerInstaller() | |
hyperstyles = require 'hyperstyles' | |
h = require('react-hyperscript') | |
o = hyperstyles h, | |
(require 'csjs')""" | |
.panel { | |
border: 1px solid black; | |
} | |
""" | |
App = -> | |
o '.panel', | |
'Hyperllo' | |
{ renderToString } = require 'react-dom/server' | |
console.log renderToString( | |
o App | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment