Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sonhanguyen
Last active April 10, 2017 01:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sonhanguyen/ba559662994fa1266bc2e0f11a1adc61 to your computer and use it in GitHub Desktop.
Save sonhanguyen/ba559662994fa1266bc2e0f11a1adc61 to your computer and use it in GitHub Desktop.
make coffeescript act again (act again <- get it?)
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