If you know all the properties that you want to place on a component a head of time, it is easy to use JSX:
var component = <Component foo={x} bar={y} />;Mutating Props is Bad, mkay
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
| <title>WebKit contentEditable focus bug workaround</title> | |
| <script type='text/javascript' src='http://code.jquery.com/jquery-1.6.2.js'></script> | |
| <script type='text/javascript'> | |
| //<![CDATA[ | |
| $(function(){ |
| function WindowController () { | |
| this.id = Math.random(); | |
| this.isMaster = false; | |
| this.others = {}; | |
| window.addEventListener( 'storage', this, false ); | |
| window.addEventListener( 'unload', this, false ); | |
| this.broadcast( 'hello' ); |
| [ | |
| { | |
| "caption": "SublimeREPL: SML", | |
| "command": "run_existing_window_command", "args": | |
| { | |
| "id": "repl_sml", | |
| "file": "config/SML/Main.sublime-menu" | |
| } | |
| } | |
| ] |
| (function(w, d) { | |
| "use strict"; | |
| // simple cookie writer | |
| function createCookie(sName, sValue, sPath, sDomain, iMillis) { | |
| var aCookie = [encodeURI(sName) + "=" + encodeURI(sValue)], | |
| expires, oDate; | |
| if (iMillis) { | |
| oDate = new Date(); | |
| oDate.setTime(oDate.getTime() + iMillis); |
| var extname = require('path').extname; | |
| var Metalsmith = require('metalsmith'); | |
| var myth = require('myth'); | |
| var http = require('http'); | |
| var templates = require('metalsmith-templates'); | |
| var markdown = require('metalsmith-markdown'); | |
| var watch = require('metalsmith-watch'); | |
| /** |
Jake Archibald (@jaffathecake): The ServiceWorker is coming; look busy
https://speakerdeck.com/jaffathecake/the-serviceworker-is-coming-look-busy
https://github.com/jakearchibald/trained-to-thrill/
https://www.youtube.com/watch?v=SmZ9XcTpMS4
Hunter Loftis (@hunterloftis): We Will All Be Game Progmrammers
http://wwabgp.herokuapp.com/s
http://youtu.be/QX0eauXBKwc
CarterRabasa (@carterrabasa): A Community of People; Not Projects
| { | |
| "cssconf": { | |
| "location": { | |
| "date": "September 12, 2014", | |
| "country": "Germany", | |
| "city": "Berlin", | |
| "venue": "Radialsystem V", | |
| "lat": 52.51039, | |
| "long": 13.42864 | |
| }, |
| 'use strict'; | |
| var React = require('react'); | |
| function createAsyncHandler(getHandlerAsync, displayName) { | |
| var Handler = null; | |
| return React.createClass({ | |
| displayName: displayName, |