View asm-setup.md
View App.jsx
/* Button class component */
class Button extends React.Component {
handleClick = () => {
this.props.onClickFunction(this.props.incrementValue)
}
render() {
return (
<button
View Button.js
/* Using the stage 2 way */
class Button extends React.Component {
state = { counter: 0 };
/*
** This might cause a race condition later on
** because setState is an asynchronous call and
** will be batched with other setState calls for performance.
*/
/*
View vscode-settings.json
{
"window.zoomLevel": 0,
"editor.fontFamily": "'Source Code Pro', Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 12,
"editor.insertSpaces": false,
"editor.minimap.enabled": false,
"editor.quickSuggestionsDelay": 100,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": false,
"editor.suggestFontSize": 11,
View unistore.js
import { h, Component } from 'preact';
/** Creates a new store, which is a tiny evented state container.
* @example
* let store = createStore();
* store.subscribe( state => console.log(state) );
* store.setState({ a: 'b' }); // logs { a: 'b' }
* store.setState({ c: 'd' }); // logs { c: 'd' }
*/
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width'>
<title>Public Class Fields Egghead.io Lesson</title>
<script src='https://unpkg.com/react@15.4.1/dist/react.js'></script>
<script src='https://unpkg.com/react-dom@15.4.1/dist/react-dom.js'></script>
</head>
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width'>
<title>Public Class Fields Egghead.io Lesson</title>
</head>
<body>
<div id='root'></div>
View reactiveconf-slam-poetry.md

JavaScript Slam Poetry

Javascript! Slam! Poetry!

View index.html
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="JavaScript Implicit Binding">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name='description' content='JavaScript Explicit Binding'>
<title>JS Bin</title>
</head>
<body>